Forum Moderators: open
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);
}
Probably more than you wanted there, they're not all search engines but they are all those recognised as robots/crawlers/spiders.
Sure you can pick out the ones you want to use.