for the search, my way to preload images! haha

Search for in

Be notified when Google crawls your page

PHP Coding Tutorials | Submited Apr 11, 2008

Written by: Mr. ∃v¡l

This is a simple guide. It send you an email when a GoogleBot crawls one of your pages.

- Notes -


This is simple; Copy/paste/replace.
Where it says blahh@blahh.org is where you put the email address you want to be notified at.

- Code -


<?php
//Check to see if it's Googlebot:
if (strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) !== false ) {

      // Define the email address where it'll be sent:
      $yourEmail = 'blahh@blahh.org';

      // Sned the email:
      mail($yourEmail,'Googlebot Alert', 'A Googlebot crawled '.$_SERVER['REQUEST_URI']);

} // End if(googlebot)
?>

tags Tags: google googlebot crawl email

4Thumbs up  Thumbs down0

Related Tutorials
Be notified when Google crawls your page
4 Comments
  Mr. ∃v¡l ~ 05/08/08, 1:39am
Picture..
Any page you want to be notified of.
  User Picture.. ~ 05/08/08, 1:38am
Picture..
i want to add this to my site but where do i paste the code at

the index?
  Mr. ∃v¡l ~ 05/07/08, 3:12pm
Picture..
Google has bots (or spiders, whichever you prefer) that crawl and index pages, any site that shows on a google search is there because it was crawled by a googlebot.
  dave ~ 05/07/08, 3:10pm
Picture..
what is a google crawl? i get all kinds of strange e-mails at my site i just deleted all my e-mail sites
i have tons of questions about this

1 


Sorry, you have to be a member to comment tutorials