Your Open Source
Free YourOpenSource Softwares Online Resources and Softwares Downloads with Demo
Related Posts
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!
115
Aug 01 09 12:27:11
Lazywriter
|
Rating :
![]() ![]() ![]() ![]() ![]() | Tags :- Tools and Utilities |
|
|||||
Digg
Yahoo
delicious
