lilmer Posted January 22, 2015 Share Posted January 22, 2015 Our website now is using Proxy we would like to get the Visitory IP. We try to get using HTTP_X_FORWARDED_FORbut it seems that doesn't get the IP. Were running the site on IIS. Link to comment https://forums.phpfreaks.com/topic/294119-get-client-ip-address-thorught-proxy/ Share on other sites More sharing options...
requinix Posted January 22, 2015 Share Posted January 22, 2015 Look in $_SERVER for a request header with the forwarded IP address. There are a couple possibilities. That's the only place to look so if it's not there then you can't get it at all. Link to comment https://forums.phpfreaks.com/topic/294119-get-client-ip-address-thorught-proxy/#findComment-1503708 Share on other sites More sharing options...
lilmer Posted January 26, 2015 Author Share Posted January 26, 2015 I try to check using phpinfo() and I get $_SERVER["HTTP_X_REAL_IP"] Link to comment https://forums.phpfreaks.com/topic/294119-get-client-ip-address-thorught-proxy/#findComment-1504206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.