in reply to Code Review of Visitor Logging Script

Hello

If your code works to exclude your visits when your view your page through your local machine, then I guess there is nothing really much to add.

A suggestion: Test to see if the Remote_host address matches the Remote_addr, then decide to exclude it.

if ($ENV{'REMOTE_HOST'}) { $host=$ENV{'REMOTE_ADDR'}; } else { $host=$ENV{'REMOTE_HOST'}; } unless ($host eq "12.0.0.7") { &send_info_in_mail; }

perleager

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.