Covers insights on Search Engine Optimization (SEO), Paid Search, Social Media, Google Search Algorithm Update to name a few . Jag's SEO a day blog articles and tips are for free to educate newbie’s, web masters, online business owners and seasoned professionals. Thank you for visiting the SEO A Day 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: