Secret google bot script

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

eliquidonline

Established Member
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
nice! got a link to your site? ill give a review on it
 
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back