Return to Snippet

Revision: 6870
at June 22, 2008 18:03 by iTony


Initial Code
<?php 
   if ( strpos( $_SERVER['HTTP_USER_AGENT'], ‘Googlebot’ ) !== false ) 
   { 
     // Tu dirección de correo electrónico 
     $email_address = "[email protected]"; 
 
     // Envía el mensaje 
     mail( 
            $email_address, 
            "Alerta de Googlebot", 
            "El Googlebot ha visitado tu pagina: " . $_SERVER['REQUEST_URI'] 
      ); 
?>

Initial URL


Initial Description


Initial Title
Get Email when Googlebot Pays a Visit

Initial Tags
php, google

Initial Language
PHP