hatchet
01-13-2003, 09:49 AM
I just was looking around at www.google-dance.com and found Darrin Wards forum (it's excellent btw). But anyway there was a thread there regarding a googlebot script.... The script emails you when it hits the page. Just include in any php page.
Thread location - Emails you when Googlebot hits (http://www.google-dance.com/chat/viewtopic.php?t=4)
[code:1:08bf8ab3ef]if(eregi("googlebot",$HTTP_USER_AGENT))
{
if ($QUERY_STRING != "")
{$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;}
else
{$url = "http://".$SERVER_NAME.$PHP_SELF;}
$today = date("F j, Y, g:i a");
mail("you@youremail.com", "Googlebot detected on http://$SERVER_NAME", "$today - Google crawled $url");
}[/code:1:08bf8ab3ef]
Thread location - Emails you when Googlebot hits (http://www.google-dance.com/chat/viewtopic.php?t=4)
[code:1:08bf8ab3ef]if(eregi("googlebot",$HTTP_USER_AGENT))
{
if ($QUERY_STRING != "")
{$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;}
else
{$url = "http://".$SERVER_NAME.$PHP_SELF;}
$today = date("F j, Y, g:i a");
mail("you@youremail.com", "Googlebot detected on http://$SERVER_NAME", "$today - Google crawled $url");
}[/code:1:08bf8ab3ef]



