Have you ever wanted to know when Google crawls your website? Well now you can using a simple PHP script which emails you everytime GoogleBot crawls your site.
I thought that many of you might find this bit of code useful, that is why I have decided to post it up.
It is not a very long piece of code, but I will talk you through how it functions.
First off lets take a look at the code:
As you can see it is a simple piece of code.
First of all it checks the user agent to see if it is ‘Googlebot’. If the user agent is ‘Googlebot’ then it will send an email to the email address you supply.