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.

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
  IF($google_alert) {
    MAIL("", "googlebot alert", $message);

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.