write a script to list out all your %ENV variables
and call it from a web browser.


Here's what my server spits back at me:

SERVER_SOFTWARE = Apache/1.3.14 (Unix)
GATEWAY_INTERFACE = CGI/1.1
DOCUMENT_ROOT = /home/furt.com/web
REMOTE_ADDR = 24.188.176.167
SERVER_PROTOCOL = HTTP/1.1
SERVER_SIGNATURE = 
Apache/1.3.14 Server at www.furt.com Port 80

REQUEST_METHOD = GET
QUERY_STRING = 
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_CONNECTION = Keep-Alive
REMOTE_PORT = 62675
SERVER_ADDR = 209.51.170.136
HTTP_ACCEPT_LANGUAGE = en-us
SCRIPT_NAME = /env.pl
HTTP_ACCEPT_ENCODING = gzip, deflate
SCRIPT_FILENAME = /home/furt.com/web/env.pl
SERVER_NAME = www.furt.com
REQUEST_URI = /env.pl
SERVER_PORT = 80
HTTP_HOST = furt.com
SERVER_ADMIN = [EMAIL PROTECTED]





> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Phil
> Lamey
> Sent: Saturday, July 15, 2000 12:44 AM
> To: Chris
> Cc: Perl-Win32-Users; Perl-Win32-Web Mailing List
> Subject: CGI IP-logging
> 
> 
> Hi all,
> 
>     I'm hoping someone can tell me how certain Web pages keep a log of the IPs
> of the people who have visited their sites.
>     Do they somehow use perl socket code?
>     Is there anywhere I can get an example of this code?
> 
> Thanks,
> 
> Phil Lamey
> 
> 
> 
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
> 
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to