Masking server IP with fsockopen?

here's my code so far

$proxy = ''; // proxy IP, change this according to your proxy setting in your IE or NS
$port = 80; // proxy port, change this according to your proxy setting in your IE or NS

$fp = fsockopen($proxy, $port);
fputs($fp, "GET $url HTTP/1.0\r\nHost: $proxy\r\nConnection: close\r\n\r\n");
  $line = fgets($fp, 4000);

The connection to the proxy server seems to work just fine, but still after loading the page it still shows the IP of my server.

Is there any way to hide my servers' IP behind the proxy I've chosen?
Who is Participating?
Than I don't believe that it is that high anonymity if your IP address is visisble.

The truly anonymous one that appears in these lists are often available for a couple of days until somebody decide to shut them down.
Hello Chaoskeeper,

It seems that your proxy is a transparent proxy, showing who is doing what behind the proxy.
You need to configure your proxy to be a anonymous proxy, meaning that the proxy will not relay your ip, but show the proxy ip address.
If it is your corporate firewall, I reckon you will have trouble changing the settings because of the obvious consequence.....


ChaoskeeperAuthor Commented:
the proxy is actually a random one somewhere on the internet
it seems that my host only accepts connections from the common ports (80,21, 110, etc) so I can't take any proxy that has a fancy port

but still if I take a proxy server stated as "high-anonymity" in this list it still shows my servers IP

tricky little bastard
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.