A to Z about Search Engine Optimization (SEO), a Internet Marketing Hand Book. In Jag's SEO a day help blog, SEO articles & tips are put together for free to educate SEO newbie’s, web designers, online business owners and seasoned SEO professionals. You're welcome to follow the blog for search & social media best practices. Thank you for visiting the SEO Help blog.

Tuesday, December 11, 2007

Do you want to receive email when GOOGLE SPIDERS and YAHOO BOT visits your BLOG Or WEBSITE?


Use the below code code to receive email when Google spiders / Yahoo Bot your blog or website pages

$email = "you@example.com";

if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))

{

mail($email, "The Googlebot came to call",

"Google has visited: ".$_SERVER['REQUEST_URI']);

}

?>



$email = "you@example.com";

if(eregi("yahoo! Slurp",$_SERVER['HTTP_USER_AGENT']))

{

mail($email, "The Yahoo bot came to call",

"Yahoo has visited: ".$_SERVER['REQUEST_URI']);

}

?>

See When A Page Is Spidered

$the_date = "Today is ".date ("l, F d Y");
$the_time = "The time is ".date ("H:i \(O")." GMT)";
$all_date = $the_date.'
'.$the_time;
echo $all_date;
?>

This is a typical output from the code:

Today is Wednesday, February 12 2007
The time is 12:15 (-0500 GMT)

Share with your friends:
Add to Google Netvibes Add to My Yahoo! Windows Live Bloglines Newsgator

Thanks for your time and support, leave a reply

8 comments:

John said...

Great, i love this post

- John jeffy

Anonymous said...

If you are looking for a new way to get traffic try this new site available by referral only at the moment but soon to be released to the public: http: / / sunsetsue. qassia. com/

Mittal Patel said...

Ohh... Thats very cool code... Thanks a lot for sharing. I will surely use it for both of my sites http://www.Share-Ebooks.com and http://www.mittalpatel.co.in

Thanks a ton

India Business Directory said...

Great code ! But where to insert in on website. Please specify.

India Business Directory said...

Great post. But please specify where to insert this code on website. Looking forward to your reply.

Tanveer Iqbal said...

great code but i think it doesn't useful so far as google analytic and webmaster tools reports shows all these basic reporting so why we should waste our time?

maxwell said...

great info! thanks man...

SYED ARIF said...

Great post. But please specify where to insert this code on website. Looking forward to your reply.