1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Get notified by mail when Googlebot visits your page

Discussion in 'Black Hat SEO' started by chuapasa, Feb 5, 2010.

  1. chuapasa

    chuapasa Registered Member

    Joined:
    Jun 4, 2009
    Messages:
    77
    Likes Received:
    294
    or all of those who don?t use this yet, this is the one I use. Just put it in your header, footer or whatever.

    <?php
    if ( strpos( $_SERVER['HTTP_USER_AGENT'], ?Googlebot? ) !== false )
    {
    // The email address we want to send the email to
    $email_address = [email protected]?;
    // Send the email
    mail($email_address,?Googlebot Visit?, ?Googlebot has visited YOURSITE.COM: ?.$_SERVER['REQUEST_URI']);
    }
    ?>
     
    • Thanks Thanks x 1
  2. jonnyquest

    jonnyquest Regular Member

    Joined:
    Nov 24, 2008
    Messages:
    277
    Likes Received:
    436
    Occupation:
    Retired
    Location:
    Island Time
    Dude,

    Doesn't work in Wordpress ... throws a syntax error
     
  3. nufaman

    nufaman Elite Member

    Joined:
    May 29, 2009
    Messages:
    1,714
    Likes Received:
    1,197
    What's the point of this? Why would anyone want to get mails for this?