Anyway, for all of those who don’t use this yet, this is the one I use. Just put it in your header, footer or whatever.
if ( strpos( $_SERVER['HTTP_USER_AGENT'], ‘Googlebot’ ) !== false )
{
// The email address we want to send the email to
$email_address = ‘YOUREMAIL@EMAIL.COM’;
// Send the email
mail($email_address,’Googlebot Visit’, ‘Googlebot has visited YOURSITE.COM: ‘.$_SERVER['REQUEST_URI']);
}
?>
No comments:
Post a Comment