HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?

Popular automatic website translation tool

HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?

Postby casinobonus » Thu May 09, 2013 11:25 pm

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
casinobonus
 
Posts: 66
Joined: Sun Jun 24, 2012 7:28 pm

Re: HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?

Postby Edvard » Fri May 10, 2013 5:12 pm

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.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: HTTP_X_REAL_IP or HTTP_X_FORWARDED_FOR?

Postby casinobonus » Sat May 11, 2013 5:52 am

Thank you
casinobonus
 
Posts: 66
Joined: Sun Jun 24, 2012 7:28 pm


Who is online

Users browsing this forum: No registered users and 0 guests

2GLux