Re: Access Client IP address

From: Date: Sat, 14 Jan 2006 14:10:30 +0000
Subject: Re: Access Client IP address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228616@lists.php.net to get a copy of this message
$_SERVER['REMOTE_ADDR'] will give you the proxy ip if they have one, and the browser sends the info, the user might change it to blahblahblah for all we know... On 1/4/06, Jay Blanchard <jay.blanchard@thermon.com> wrote: > > [snip] > Is there any way to client's IP address inside a php document. I am > trying to generate a code that depends on the IP address of the client. > [/snip] > > > > http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.serve > r > > $_SERVER['REMOTE_ADDR'] > > but it may not always be reliable > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!

« previous php.general (#228616) next »