If I place a PHP script on a host, and in that script FTP a file (local to the script) to a FTP account also ending on that same host, my expectation is that the connection and transfer should be nearly instant as (I hope) no outbound traffic would be generated. But I don't have a way to test this. Is this really the case?
Update
- The FTP host is not
localhost
, or127.0.0.1
. Say we have a normal FTP accountjohndoe
with a*******
password onthehost.com
. On this samethehost.com
we execute ourout_of_jail.php
script that will FTP/css/styles.css
tothehost.com
. - This is supposed to work on host environments where
the admin does not have access to
/etc/hosts
to addthehost.com
. - Let's define
outbound traffic
in the most restrictive way, by it, we mean traffic that goes out to the network card. So, if it goes out and returned as an inbound packet by some other device in the same network, it would still be considered as outbound traffic.