ruchi Posted May 30, 2011 Share Posted May 30, 2011 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 More sharing options...
requinix Posted May 30, 2011 Share Posted May 30, 2011 There is no guarantee that the proxy will send the user's real IP address. Print out $_SERVER and see if anything in there matches what you need. Link to comment https://forums.phpfreaks.com/topic/237831-get-ip-addreaa-behind-proxy-server/#findComment-1222196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.