if ($ENV{'HTTP_USER_AGENT'} =~ /googlebot/) {
open (DATABASE,">>$database");
print DATABASE "$ENV{'REMOTE_ADDR'} - $ENV{'HTTP_USER_AGENT'} - $ENV{'SCRIPT_URL'} - $shortdate\n";
close(DATABASE);
}
if ($ENV{'HTTP_USER_AGENT'} =~ /googlebot?Scooter?Northern Light Gulliver?Infoseek Sidewinder?Inktomi Slurp?Direct Hit Grabber?fido/) {
because one of my perl chat scripts has this
if($ENV{'REMOTE_ADDR'} =~ /\b(206\.58?204\.203?206\.163?65\.163)/) {
to let users know if the user is the webmaster.
Edit: The? should be the line going up and down, the mark above the return button. It looks like that's what you posted.