Forum Archive - HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?

HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?
May 9, 2013 7:25 pm by casinobonus
Hi. I'm using Enterprise at casinobonuscenter.com and I need to get the real visitor's IP to use GeoLocalization I can see 2 vars in $_SERVER: HTTP_X_REAL_IP and HTTP_X_FORWARDED_FOR What is the difference? Thank you! Arturo
Re: HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?
May 10, 2013 1:12 pm by Edvard
Hi, In case of the request being forwarded through many proxies the HTTP_X_FORWARDED_FOR variable will be the list of each server IP the request passed through seperated by comma (the proxy should set that variable and it is optional). While HTTP_X_REAL_IP is the IP address of the last requester. If there are no proxy servers between then it will be the real IP of the visitor.
Re: HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?
May 11, 2013 1:52 am by casinobonus
Thank you

Try GTranslate with a free 15 day trial