in reply to Subscription form script

$ENV{REMOTE_ADDR} is supplied from the TCP connection by your webserver and is unlikely to be wrong (unless you've mucked with it elsewhere).

--Bob Niederman, http://bob-n.com

Replies are listed 'Best First'.
Re: Re: Subscription form script
by Anonymous Monk on Aug 06, 2003 at 13:56 UTC

    It could be spoofed though, but I guess there's no simple way to validate that.

    What I intended to use it for was to check how many times a specific ip had accessed the script to prevent flooding. I'm probably being overparanoid here and will just end up blocking some proxies - what do you think?