Skip to content

Instantly share code, notes, and snippets.

@sendoa
Created June 8, 2012 17:21
Show Gist options
  • Save sendoa/2896994 to your computer and use it in GitHub Desktop.
Save sendoa/2896994 to your computer and use it in GitHub Desktop.
Recibir un mail cada vez que Google visita la web
<?php
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) !== false ) {
mail('tu_direccion@correo.com','Aviso: Googlebot ha visitado tu web','El Googlebot ha visitado tu página: http://tu_dominio.com'. $_SERVER['REQUEST_URI']);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment