Googlebot Monitor

Description: This script notifies you when Google bot visits your page. Copy this into the page and edit the email address to be notified.

<?PHP
 
IF(EREGI("googlebot",$_SERVER['HTTP_USER_AGENT'])) {
  $s = "";
  FOREACH($_SERVER AS $item => $value) {
    $s .= "\n$item : $value";
  }
  $sdate = DATE("Y-m-d h:i:s");
  $message = <<<message
Visit date:$sdate
Information:
=================================
$s
=================================
MESSAGE;
  IF($google_alert) {
    MAIL("youremail@yourdomain.com", "googlebot alert", $message);
  }
}
 
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.