Categorized | Search Engine Watch

How To Get Text Updates of the Google Bot

Posted on 05 November 2007 by DeanHunt

Tired of checking your Google rankings and index updates every hour? Wouldn’t it be cool if you could get your server to send a text message to your phone when the Google-Bot is visiting?

Here is how you can do it:

if ( strpos( $_SERVER[’HTTP_USER_AGENT’], ‘Googlebot’ ) !== false )
{
// Send Alert To:
$mobile_address = ‘yournumber@txt.att.net’;

// Send Message
mail($mobile_address,’GoogleBot’, ‘GoogleBot is surfing your site!’);
}

Using a simple STRPOS to check the user agent for GoogleBot, if it comes back valid we just send the message. Now, each carrier has separate domains for their phone accounts. AT&T/Cingular for example use cellnumber@txt.att.net. Where cellnumber is obviously your cell phone number. Using this email address will send a txt message to your phone with an alert when GoogleBot comes to visit.

As seen on smmguru

Note: If you don’t have access to a mobile subscriber email account you can use an online gateway - http://www.txtlocal.com and sent a message to mymobilenumber@txtlocal.co.uk

1 Comments For This Post

  1. Steven Henderson Says:

    Looks like PHP to me so needs embedding in some tags.

    How do you keep the script running on your server? Or is there some sort of wake-up call when Googlebot arrives?

    Steve

Leave a Reply