PHP Schnipsel

Google Bot benachrichtigung

Dieses Script sendet euch eine eMail, wenn der Google Bot eure Seite besucht hat.

  1.  <?php   
  2.     
  3.  $host gethostbyaddr($_SERVER['REMOTE_ADDR']);   
  4.  $domain explode("."$host);   
  5.  $domain_array count($domain)-2  
  6.  if ($domain["$domain_array"] == "googlebot"){   
  7.   $an"ema@il.de"  
  8.   $subject"GoogleBot war da"  
  9.   $msg "Googlebot war auf deiner HP!\n"  
  10.   $msg .= "Er war da am: ".date("d.m.Y H:i").""  
  11.     
  12.   mail($an$subject$msg"From: $an");   
  13.    
  14.     
  15.  ?>   






T: 34979 G: 7 H: 10 T: +4 O: 5