/* send a mail to hostmaster $ip=$_SERVER['REMOTE_ADDR']; $where=$_SERVER['HTTP_REFERER']; $tmestamp = time(); $datum = date("Y-m-d (D) H:i:s",$tmestamp); $from = "wwhiker@aol.com"; $to = "wwhiker@aol.com"; $subject = "MDR Error page tripped"; $msg = "A bad robot or person hit error 404 on mdr $where $datum \n"; $msg .= "address is $ip, referer is $where \n"; if ($where == "") { echo ""; } else { mail($to, $subject, $msg, "From: $from"); } */ /* append bad bot address data to blacklist log file: */ ?>