Quote:
|
Originally Posted by arpecop
... the question that wondering me is for how exactly time googlebot crawls one of my pages ....
|
Maybe this helps:
Code:
<?
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("info@xxxxxxx.com", "Googlebot detected on http://$SERVER_NAME", "$today - Google crawled $url");
}
?>
copy & paste that code into an ASCII editor, replace
info@xxxxxxx.com with your e-mail-address and save it as googlebot.php
I include it via SSI in the pages I want to monitor:
Syntax may differ, depending on your server. You may also simply include this in PHP if your pages are based on PHP.
Everytime Googlebot crawls one of those pages, you get an E-Mail with time and URL information. Can be easily adapted to other or even multiple bots.
hth,
Alex