Want to know when Google or another Search Bot Crawls your Site
Enter this anywhere in your code. If your running a CMS or another engine, you can enter this in your footer.php:
<?php
$email = "you@your-domain.com";
if(eregi("yahoo! Slurp",$_SERVER['HTTP_USER_AGENT'])) {
mail($email, "The Yahoo bot came to call yoursite",
"Yahoo has visited: ".$_SERVER['REQUEST_URI']);
}
if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT'])) {
mail($email, "The Googlebot came to call your site",
"Google has visited: ".$_SERVER['REQUEST_URI']);
}
if(eregi("msnbot",$_SERVER['HTTP_USER_AGENT'])) {
mail($email, "The MSNbot came to call your site",
"Microsoft has visited: ".$_SERVER['REQUEST_URI']);
}
if(eregi("bingbot",$_SERVER['HTTP_USER_AGENT'])) {
mail($email, "The Bingbot came to call your site",
"Bing has visited: ".$_SERVER['REQUEST_URI']);
}
?>
Tip: Not 100% sure this will work but you could try and wrap it around a session object. This will show you the entrance the bot came to your site with the spam if they spend all day there.
█ A professional proxy service for all proxy needs by
█ MyProxyLists.com