Jump to content
#FlattenTheCurve ×

Archived

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

lilmer

Get Client IP Address thorught Proxy

Recommended Posts

Our website now is using Proxy we would like to get the Visitory IP. 

 

We try to get using 

HTTP_X_FORWARDED_FOR

but it seems that doesn't get the IP. Were running the site on IIS.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I try to check using phpinfo() and I get 

$_SERVER["HTTP_X_REAL_IP"]

Share this post


Link to post
Share on other sites

×
×
  • 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.