php记录Google机器人访问足迹
<?php $email = "test@test.com"; if(eregi("googlebot",$HTTP_USER_AGENT)) { if ($QUERY_STRING != "") { $url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING; } else { $url = "http://".$SERVER_NAME.$PHP_SELF; } $date = date("F j, Y, g:i a"); mail($email, "[Googlebot] $url", "$date - Google crawled $url"); } ?>