Your Open Source

 
Related Links
Web Design  >>  Tools and Utilities

Tools and Utilities

GoogleBot Notifier

Google has established a huge reputation when it comes to making a site searchable.

GoogleBot crawls your site everytime the user types keywords in the search bar that match your site.

If you want to be notified whenever Google crawls your site, here's a short yet useful code you can paste within your code that will help you monitor the progress of your site:

[sourcecode language='php']


if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) !== false )
{
// Your email address here
$email_address = 'you@yourdomain.com';

// Sends an email
mail($email_address,'Googlebot Alert', 'The GoogleBot has visited your page: '.$_SERVER['REQUEST_URI']);
}
?>
[/sourcecode]



Whenever the user agent is specified to be the GoogleBot itself, the code will send you an email.

Enjoy!

  • hits 69
  • datetime Aug 01 09 12:27:11
  • author Lazywriter
  • rating

Rating : 12345

Comments


Hary
Aug 02 09 05:52:20
wow!! great lazy..

Quick Reply or Comments

Preview
Your Name:
Your Reply :
<> is a code tag
Enter the verification code: