On Thursday, Jun 12, 2003, at 16:49 US/Pacific, Chris Anderson wrote: [..]
I have one page where I need to track all IPs going to that page. I need this to be output to an HTML file or a text file that will be dynamically read by an HTML file.
do you mean the REMOTE_HOST REMOTE_ADDR environmental value, if set?
how about say,
my $players = {};
$players->{remote_host} = $ENV{REMOTE_HOST}; $players->{remote_addr} = $ENV{REMOTE_ADDR};
then if you have a blank in one you can do the applicable host look up in dns, and get the other....
Granted, there is no gurantee that the actual value there is Kosher, but if you really want to get funky then you can of course look at the REMOTE_PORT and try some socket getpeer types of tricks...
Or if it is a static page this information should be available in the log files for the server. In most cases the name won't, but that is easier to lookup after the fact than slowing down each request....
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]