Hi,

> > I'm sure there has to be a way to verify which IP 
> > address is accessing from.
> > $ip=HTP_GET_????
>  
> $REMOTE_ADDR

...and to deal with some (but not all) proxies:

$ip = (getenv("HTTP_X_FORWARDED_FOR"))
    ?  getenv("HTTP_X_FORWARDED_FOR")
    :  getenv("REMOTE_ADDR");

Either way you're still going to get stuff that isn't right, so make sure
(a) you validate the contents of $ip before doing anything with it, and (b)
you're not using it for anything critical.

Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to