Forum Moderators: coopster
[webmasterworld.com...]
It seems to be working fine but how does a bad spider find the getout.php file? Do I need to place a hidden link on every webpage? If so, how do I create a hidden link?
[webmasterworld.com...]
and modified accordingly and added the following,
I created a folder called trap and added it to the robots disallow list.
I created this file and put it in the trap folder,
<html>
<head>
<meta name="robots" content="noindex,nofollow">
<title>Private Email</title>
</head>
<body>
<p><center>
This is a private email address for emergency use only,<br>
ONLY the webmaster of this website may use it<br>
<a href="http://example.com/trap/getout.php">Private Email Address</a>
</center></p>
</body>
</html>
and added the following link to my footer on everypage,
<a style="display:none" href="http://example.com/trap/email.php" onclick="return false">Email</a>
I also added back in the mail line from the original php spider trap,
mail("me@mysite.com",
"Spider Alert!",
"The following ip just got banned because it accessed the spider trap.\r\n\r\n".$_SERVER["REMOTE_ADDR"]."\r\n"
.$_SERVER["HTTP_USER_AGENT"]."\r\n".$_SERVER["HTTP_REFERER"]
,"FROM: trap@mysite.com");
So now I get a email when the trap is sprung and I use the robots file to disallow the trap folder and then a noindex,nofollow line in the email.php file to make sure no good bots open the getout.php file.
Is adding these changes going to create any new problems? Do good bots follow the noindex,nofollow rule without exception?