CGI and client's IP?
J. Random Hacker
jrandom at mddd.com
Wed May 1 21:59:11 EDT 2002
On Mon, 29 Apr 2002 05:58:56 -0400, Fernando Rodríguez wrote:
> Can I get the client's IP froma a cgi script? O:-)
>
> TIA
>
>
>
>
>
>
>
> -----------------------
> Fernando Rodriguez
You can get the REMOTE_ADDR environment value. The only thing
you can do with this though is put it in a log. Don't try to use it as a
session identifier, because if you get two people behind the
same firewall or NAT box using your CGI scripts you will have the
same IP for two different users/sessions.
J
More information about the Python-list
mailing list