Message Board

Installing Honey Pots

Older Posts ]   [ Newer Posts ]
 Add a random set of honeypot links to your pages with PHP
Author: R.Monks2   (18 Sep 06 2:39pm)
Here is the script:

$i = 0;
while ($i <= 3) {
switch(rand(1,9)) {

case 1:
echo '<a href="YOUR_HONEYPOT_URL"><!-- click here --></a>';
break;

case 2:
echo '<a href="YOUR_HONEYPOT_URL"><img src="clickhere.gif" height="1" width="1" border="0"></a>';
break;

case 3:
echo '<a href="YOUR_HONEYPOT_URL" style="display: none;">click here</a>';
break;

case 4:
echo '<div style="display: none;"><a href="YOUR_HONEYPOT_URL">click here</a></div> ';
break;

case 5:
echo '<a href="YOUR_HONEYPOT_URL"></a>';
break;

case 6:
echo '<!-- <a href="YOUR_HONEYPOT_URL">click here</a> -->';
break;

case 7:
echo '<div style="position: absolute; top: -250px; left: -250px;"><a href="YOUR_HONEYPOT_URL">click here</a></div> ';
break;

case 8:
echo '<a href="YOUR_HONEYPOT_URL"><span style="display: none;">click here</span></a>';
break;

default:
echo '<a href="YOUR_HONEYPOT_URL"><div style="height: 0px; width: 0px;"></div></a>';
break;
}
$i++;
}


I hereby release this script into the public domain, feel free to use it to really drive bots crazy, it will randomly select 3 baits out of 9 possibilities.

Enjoy!
Robin
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: J.Yard2   (21 Apr 07 2:41pm)
Unless that script is executed on the server side it is unlikely the bots will see them, unless they execute client side scripts such as VB and JS.
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: C.Schultz   (23 Apr 07 1:53am)
Umm, I could be mistaken but I'm thinking PHP is server side. ;-)
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: D.Logan   (24 Apr 07 7:29pm)
This is a nice script, but I get 4 links out of 9 unless I use:

while ($i <= 2)

This makes 3 links.
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: R.Monks2   (25 Apr 07 1:42pm)
Ah, right, so, 4 out of 9 possibilities :) And yes, php is server side.

Robin
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: J.Haywood   (26 Apr 07 4:39pm)
Nice, thanks, I'll include that :)
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: M.Nordhoff   (29 Apr 07 8:53pm)
while ($i < 3)

to make 3 links (and similar for 4) would be clearer.

Also, mt_rand() is cooler than rand().

Also also, what's the point of putting more than one link on each page?

Post Edited (29 Apr 07 8:54pm)
 
 Re: Add a random set of honeypot links to your pages with PHP
Author: D.Logan   (29 Apr 07 11:40pm)
I like to diversify my links and put more than one per page to lower the risk that a particular bot avoids or doesn't parse a certain type of link. More links increase the chance that a bad bot will get trapped by having a higher trap to normal link ratio.



do not follow this link

Privacy Policy | Terms of Use | About Project Honey Pot | FAQ | Cloudflare Site Protection | Contact Us

Copyright © 2004–17, Unspam Technologies, Inc. All rights reserved.

contact | wiki | email