Posted By

iTony on 06/22/08


Tagged

php google


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

jonhenshaw
wizard04
jprice
huynguye
joethermal
Kurt
voove


Get Email when Googlebot Pays a Visit


 / Published in: PHP
 

  1. <?php
  2. if ( strpos( $_SERVER['HTTP_USER_AGENT'], ‘Googlebot’ ) !== false )
  3. {
  4. // Tu dirección de correo electrónico
  5. $email_address = "[email protected]";
  6.  
  7. // Envía el mensaje
  8. mail(
  9. $email_address,
  10. "Alerta de Googlebot",
  11. "El Googlebot ha visitado tu pagina: " . $_SERVER['REQUEST_URI']
  12. );
  13. ?>

Report this snippet  

You need to login to post a comment.