Are You Being Crawled?

I've noticed that much of my web traffic has come from Google and MSN bots crawling my site - they count for almost fifty percent of my traffic!

So I found this interesting script that you can include on your site that will email you a notification everytime a googlebot crawls your site:

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"); }
  • posted on 15 February 2005
  • by Jesse

InterAction:

20 March 20051. JDG:

A good friend of mine made these comments:

1) This script would be trivial to abuse and fill your email box with false positives. See LWP::Simple.

2) I think you invite trouble by publishing code you did not write that has no firm license. ("This script is completely free for you to use and modify however you see fit, but if you make any cool changes, please share them with us :)" does not count really as a license.

3) Why in heavens name would you care when Google was actually indexing your pages, and aren't there easier ways to tell after it has happened than filling your in-box with Junk from yourself?

Points definitely to note.


YourThoughts?



(Minutia)

This entry was written by Jesse on Tuesday, February 15, 2005 at 11:07 AM and appears in the Blogging chapter. The previous article was entitled, "Happy Valentine's Day!", and the next entry is called, "CBS (Crash, Burn, Sink)". Bookmark the permalink, save it to del.icio.us or Digg it.

GetUpdated

ElseWhere

Find me on aim Find me on delicious Find me on digg Find me on linkedin Find me on pownce Find me on twitter Find me on youtube Find me on skype Find me on facebook Find me on livejournal Find me on msn Find me on vox Find me on technorati Find me on yahoo Find me on dopplr Find me on lastfm

ActionStream

  • Jesse said, "Looks like MT is finally adopting jQuery! (Plugin writing just became a whole lot easier.)" Jesse said, “Looks like MT is finally adopting jQuery! (Plugin writing just became a whole lot easier.)” 2008-11-22T03:29:19Z 2008-11-22T03:29:19Z
  • Jesse saved Shiba Inu Puppy Cam?!?! Is this for real? as a favorite video Jesse saved Shiba Inu Puppy Cam?!?! Is this for real? as a favorite video 2008-11-22T01:00:26Z 2008-11-22T01:00:26Z
  • Jesse said, "Live action version of the Shiba Inu Puppy Cam. http://tinyurl.com/6k4gdx" Jesse said, “Live action version of the Shiba Inu Puppy Cam. http://tinyurl.com/6k4gdx” 2008-11-22T00:39:49Z 2008-11-22T00:39:49Z
  • Jesse said, "@thunderchld » Glad you liked it! Funny thing is I just threw it together one day when I was messing around. :P" Jesse said, “@thunderchld » Glad you liked it! Funny thing is I just threw it together one day when I was messing around. :P” 2008-11-21T23:46:49Z 2008-11-21T23:46:49Z
  • Jesse said, "Correction, it's a 44b ... the same one Bing Crosby is singing into in this pic: http://is.gd/8rts" Jesse said, “Correction, it’s a 44b … the same one Bing Crosby is singing into in this pic: http://is.gd/8rts” 2008-11-21T16:33:22Z 2008-11-21T16:33:22Z