getting the "right" REMOTE_ADDR

From: Date: Thu, 21 Feb 2002 04:28:30 +0000
Subject: getting the "right" REMOTE_ADDR
Groups: php.general 
Request: Send a blank email to php-general+get-85678@lists.php.net to get a copy of this message
Hi all, I need to know the exact ip of who is entering a site and I'm worried about proxies and spoofing. From php.net: http://www.php.net/manual/en/function.getenv.php This was listed: ============================ This gives you the right ip: if (getenv(HTTP_CLIENT_IP)){ $ip=getenv(HTTP_CLIENT_IP); } else { $ip=getenv(REMOTE_ADDR); } ============================ Is this really a fool-proof method of knowing exactly what the ip is that's getting onboard? Thanks! Sean ------------------------------- I N T E R C O N N E C T Internet Image Development Tel: 505 989 3749 http://www.InterConnect.is.it -------------------------------

« previous php.general (#85678) next »