[PHP] getting the right REMOTE_ADDR

2002-02-20 Thread sean
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)){

Re: [PHP] getting the right REMOTE_ADDR

2002-02-20 Thread Steven Walker
I don't know too much about this, but IP checking is not a reliable way of identification anyway. Depending on how people connect to the internet, some people will have different IPs every time. Since I use a cable modem, my IP address rarely changes (if ever) so I use it as a safety net to

Re: [PHP] getting the right REMOTE_ADDR

2002-02-20 Thread sean
My problem is a touch different, I know the IP's of the visitors who can visit the site, but I need to make sure that it's *really* them. Cookies are a potential solution, but don't quite fit the bill due to some variables on the users sides - and what I'm really keeping out are bots (that

Re: [PHP] getting the right REMOTE_ADDR

2002-02-20 Thread Steven Walker
You lost me... but it sounds like fun! :) BTW, can anything fake $HTTP_REFERER? I'm sure one of the pros on the list can answer your original question: Is this really a fool-proof method of knowing exactly what the ip is if (getenv(HTTP_CLIENT_IP)){