Trigs
23-01-2009, 10:51 PM
Ay,
I have a login script. Everytime a user logs in, it records their IP. In order to ensure that they aren't using a proxy to hide their IP, I want to be able to record their real IP. Most proxies use the $_SERVER['HTTP_X_FORWARDED_FOR'] header from what I know so I need a PHP script that checks to see if that header (or $_SERVER['VIA'];) exists and if it does, save that IP instead (I can code that last one). Is there a way to check if a SERVER var exists?
Thread moved from Designing & Development by ,Jess, (Forum Super Moderator): Please post in the correct section.
I have a login script. Everytime a user logs in, it records their IP. In order to ensure that they aren't using a proxy to hide their IP, I want to be able to record their real IP. Most proxies use the $_SERVER['HTTP_X_FORWARDED_FOR'] header from what I know so I need a PHP script that checks to see if that header (or $_SERVER['VIA'];) exists and if it does, save that IP instead (I can code that last one). Is there a way to check if a SERVER var exists?
Thread moved from Designing & Development by ,Jess, (Forum Super Moderator): Please post in the correct section.