PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
PaTTeR
Forum Commoner
Posts: 56 Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:
Post
by PaTTeR » Sun Dec 22, 2002 12:10 pm
So, if user uses proxy server $_SERVER['REMOTE_ADDR'] is proxy's IP. How can get real user IP?
PaTTeR
Forum Commoner
Posts: 56 Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:
Post
by PaTTeR » Sun Dec 22, 2002 1:08 pm
Huh, i find it
Code: Select all
$_SERVERї'HTTP_X_FORWARDED_FOR']
$_SERVERї'HTTP_VIA']
but these variables isn't in php doc ;-(
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Mon Dec 23, 2002 1:24 am
these headers are courtesy of the proxy and might be set, might be not
PaTTeR
Forum Commoner
Posts: 56 Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:
Post
by PaTTeR » Thu Dec 26, 2002 3:51 am
Yes it is, but i have not any other idea ;-(