PDA

View Full Version
Web Directory by Mugi SEO News Internet Marketing


ServerBeach Coupon Code
: Cool Script


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]

Anonymous
01-13-2003, 11:06 AM
That is a cool script. 8)

hatchet
01-13-2003, 12:54 PM
Well I put this on my index page.. see if it works. Considering the source I am going to say it works like a champ.

hatchet
01-13-2003, 03:02 PM
Googlebot Detected...
January 13, 2003, 5:46 pm - Google crawled http://biltright.com/index.php

Anonymous
01-13-2003, 06:15 PM
Does that detect just the deep crawler? Or the freshbot as well?

hatchet
01-13-2003, 06:15 PM
You can change it to detect the freshbot also...

hatchet
01-13-2003, 06:17 PM
Sorry... change googlebot to freshbot... that's it.

Anonymous
01-13-2003, 06:22 PM
Sorry... change googlebot to freshbot... that's it.

Well damn, some sites get the freshbot everyday. But you could probably set it to detect only the deep crawler IP, no?

hatchet
01-13-2003, 06:24 PM
I'm not sure.... I'll have to ask that question...
What is the difference between the googlebot and the deep crawler?

Anonymous
01-13-2003, 06:32 PM
Fresh: 64.68.82.*

Deep: 216.239.46.*

hatchet
01-13-2003, 06:50 PM
From what I read all that is needed to change from either one to the other is change the googlebot to freshbot or vice versa. Depending on which you wanted to track.. I suppose you could copy the code under itself and change that one to freshbot.