Page 1 of 1

Get user real IP

Posted: Sun Dec 22, 2002 12:10 pm
by PaTTeR
So, if user uses proxy server $_SERVER['REMOTE_ADDR'] is proxy's IP. How can get real user IP?

Posted: Sun Dec 22, 2002 1:08 pm
by PaTTeR
Huh, i find it

Code: Select all

$_SERVERї'HTTP_X_FORWARDED_FOR']
$_SERVERї'HTTP_VIA']
but these variables isn't in php doc ;-(

Posted: Mon Dec 23, 2002 1:24 am
by volka
these headers are courtesy of the proxy and might be set, might be not ;)

Posted: Thu Dec 26, 2002 3:51 am
by PaTTeR
Yes it is, but i have not any other idea ;-(