Jump to content

Get IP Addreaa Behind Proxy Server


ruchi

Recommended Posts

Cannot Get IP Address Behind A Proxy Server.I am using

$aph = apache_request_headers();

print $aph['PC-Remote-Addr'] . "<br/>";

 

print "HTTP_CLIENT_IP: " . $_SERVER["HTTP_CLIENT_IP"] . "<br/>";

print "HTTP_X_FORWARDED_FOR: " . $_SERVER["HTTP_X_FORWARDED_FOR"] . "<br/>";

print "REMOTE_ADDR: " . $_SERVER["REMOTE_ADDR"] . "<br/>";

print "CLUSTER CLIENT " . $_SERVER["HTTP_X_CLUSTER_CLIENT_IP"] . "<br/>";

 

exit;

but does not give output.Please suggest me how to get ip behind proxy server.

Link to comment
https://forums.phpfreaks.com/topic/237831-get-ip-addreaa-behind-proxy-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.