Created
June 8, 2012 17:21
-
-
Save sendoa/2896994 to your computer and use it in GitHub Desktop.
Recibir un mail cada vez que Google visita la web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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