« Home | Basics of SEO » 

Donnerstag, März 30, 2006 

Yuchuuu... the GoogleBot was here!

With this php-code you can send yourself an eMail when Google visited your site. Tried and tested - I got my first mail after a few weeks...

<!-- Waiting for Google -->
<?php
$email = 'googlebot@outdooralex.de';
if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
{ mail($email, "GoogleBot was here","Google visited the xxx-page: ".$_SERVER['REQUEST_URI']); }
?>
<!-- Waiting for Google-End -->