Forum Moderators: open
Is there another way to determine if Google has been to my site? Can anyone recommend any good free (or inexpensive) tools for tracking the crawlers?
Also, can you set alerts to let you know when certain crawlers are on your site?
As for tools notifying you when google visited your site; assuming you can do some kind of server side scripting, then try something along the lines of:
1. Create a text file on your server (googlebot.txt)
2. add something like the following for each page you want to track:
if useragent=googlebot then
add entry to your googlebot.txt with file name, date, time, IP etc...
(and if you want email yourself a message)
end if
Here's how I log the Googlebot. If you use SSI with cgi, put this code in the script and make the text file set so the server can write in it, and change the database to the correct path
$database = "/public_html/cgi-local/google.txt";
$shortdate = `date +"%D %T %Z"`;
chop ($shortdate);
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);
}