- Impact
- 0
add this to your main page, or any page and it will tell you when and which googlebot (the refresh or deep crawl bot) indexed your site and email you the results :
include your own php tags please
-------------------------------------------------------------------------
if(eregi("googlebot",$HTTP_USER_AGENT))
{
$crawl = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
if(eregi("64.",$REMOTE_ADDR))
{ $crawler = "Refresh GoogleBot"; }
if(eregi("216.",$REMOTE_ADDR))
{ $crawler = "Google Deep Crawler"; }
else
{ $crawler = "Unknown Crawler"; }
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("[email protected]", "Googlebot detected on $SERVER_NAME", " $today n Googlebot IP Address: $REMOTE_ADDR n Googlebot Domain: $crawl n Crawler Type: $crawler n Url Visited: $url");
}
all i ask in return is to visit my site and give me comments on how to improve it
include your own php tags please
-------------------------------------------------------------------------
if(eregi("googlebot",$HTTP_USER_AGENT))
{
$crawl = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
if(eregi("64.",$REMOTE_ADDR))
{ $crawler = "Refresh GoogleBot"; }
if(eregi("216.",$REMOTE_ADDR))
{ $crawler = "Google Deep Crawler"; }
else
{ $crawler = "Unknown Crawler"; }
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("[email protected]", "Googlebot detected on $SERVER_NAME", " $today n Googlebot IP Address: $REMOTE_ADDR n Googlebot Domain: $crawl n Crawler Type: $crawler n Url Visited: $url");
}
all i ask in return is to visit my site and give me comments on how to improve it


















