Hi, I'm using this snippet of code in "html_header.php"...
it emails me when Googlebot comes to visit, pretty handy tool.
...except that it seems to put MY EMAIL ADDRESS into the 'contact us' form on my website!?!?!?
How can I change the variable so that it doesn't do this?PHP Code:
<?php
$email = "[email protected]";
if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
{
mail($email, "The Googlebot came to call",
"Google has visited: ".$_SERVER['REQUEST_URI']);
}
?>
I tried changing the above "$email" to "$email2"...but it still does it!!
How can I get this to work without interfering with ZC?
Bookmarks