
Google Bot benachrichtigung
Dieses Script sendet euch eine eMail, wenn der Google Bot eure Seite besucht hat.
|
<?php
$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$domain = explode(".", $host);
$domain_array = count($domain)-2;
if ($domain["$domain_array"] == "googlebot"){
$an= "ema@il.de";
$subject= "GoogleBot war da";
$msg = "Googlebot war auf deiner HP!\n";
$msg .= "Er war da am: ".date("d.m.Y H:i")."";
mail($an, $subject, $msg, "From: $an");
}
?>
|
T: 34979 G: 7 H: 10 T: +4 O: 5
|
|