RSS

Get Email Notification Everytime Google Crawls Your Site

Fri, Nov 7, 2008

PHP

Googlebot

Ever wanted to know how often Google crawls your site? This tutorial is going to show you how to make your website send you an email everytime Google visits your site.

1
2
3
4
5
6
7
<?php
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false)
{
$email = 'you@domain.com';
mail($email,'Googlebot Alert', 'Googlebot has crawled your page: '.$_SERVER['REQUEST_URI']);
}
?>

Just paste that code in somewhere on your site. Change $email to your email address then you will be emailed every time Google visits your site.

Also, its worth mentioning that because its being sent straight from a server automatically alot of email clients will mark it as spam. So if you think its not working just check your spam box ;)

Rating: 9.8/10 (5 votes cast)
Share and Enjoy:
  • Digg
  • Google
  • Technorati
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Furl
  • Live
  • Reddit
  • Spurl

  • Subscribe
    • XML
    • Google Reader or Homepage
    • Add to My Yahoo!
    • Subscribe with Bloglines
    • Subscribe in NewsGator Online
    • BittyBrowser
    • Add to My AOL
    • Convert RSS to PDF
    • Subscribe in Rojo
    • Subscribe in FeedLounge
    • Subscribe with Pluck RSS reader
    • Solosub
    • MultiRSS
    • R|Mail
    • Rss fwd
    • Blogarithm
    • Eskobo
    • gritwire
    • BotABlog
    • Simpify!
    • Add to Technorati Favorites!
    • Add to netvibes
    • Add this site to your Protopage
    • Subscribe in NewsAlloy
    • Subscribe in myEarthlink
    • Add to your phone
    • Get RSS Buttons

, , , , , , ,



This post was written by:

admin - who has written 41 posts on Unreal Media.


Contact the author

1 Comments For This Post

  1. Dbz Says:

    Hey, You sent me your blog URL via digitalpoint forums, Thanks for this code, Will use it for some of my new domains.

    Great site, will check the rest of the content here later

    Rating: 0.0/5 (0 votes cast)

Leave a Reply