IP address

Jon Ribbens jon+usenet at unequivocal.co.uk
Thu Aug 10 06:39:26 EDT 2006


In article <1155206207.759038.38720 at m79g2000cwm.googlegroups.com>, Lad wrote:
> I have a website written in Python and I would like to login every
> visitor's IP address.
> In other words, if a visitor come to my Python application, this
> application will record his IP.

Depending on what CGI framework you're using, something like:

  os.environ["REMOTE_ADDR"]



More information about the Python-list mailing list