Quick Search:
 
 PHP Code: GoogleBot monitor Jump to:  
Category: >> PHP Code >> GoogleBot monitor  

<< lastnext >>

Snippet Name: 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.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: February 27th, 2009

<?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("[email protected]", "googlebot alert", $message);
  }
}
 
?>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org