Jane and Jon

hounddog32

« Another contribution to CSS Drop shadows | Main | Sulihull NQT Conference »

December 31, 2005

Project Honeypot

Having reinstalled MT on hounddog32.com and had a few problems with the Project Honeypot plugin, I've been playing around with it again. The error I got on installing the plugin comes when I try to look at the plugin config page:
An error occurred: Can't locate projecthoneypot/admin.pm in @INC (@INC contains:
/home/hounddog/public_html/mt-static/extlib
/home/hounddog/public_html/mt-static/plugins
/home/hounddog/public_html/mt-static/lib
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at
/home/hounddog/public_html/mt-static/mt-projecthoneypot.cgi line 35.

If I get a resolution I'll put an update on here.

I've also been re-implimenting it on bigqns.com, where I first tried it out. I dug out my old code for a link rotator and thought it was worth sharing, should anyone else be looking to put in random link styles for project honeypot in a template setting. I guess that this could be made into a module for website baker, the CMS that I use, but I hard-coded it into the template I've made.

$honey_pot_link = array(0=>"<a href=\"http://www.bigqns.com/[honeypot].php\"><!-- county --></a>",
"<a href=\"http://www.bigqns.com/[honeypot].php\"><img src=\"county.gif\" height=\"1\" width=\"1\" border=\"0\"></a>",
"<a href=\"http://www.bigqns.com/[honeypot].php\" style=\"display: none;\">county</a>",
"<div style=\"display: none;\"><a href=\"http://www.bigqns.com/[honeypot].php\">county</a></div>",
"<a href=\"http://www.bigqns.com/[honeypot].php\"></a>",
"<!-- <a href=\"http://www.bigqns.com/[honeypot].php\">county</a> -->",
"<div style=\"position: absolute; top: -250px; left: -250px;\"><a href=\"http://www.bigqns.com/[honeypot].php\">county</a></div>",
"<a href=\"http://www.bigqns.com/[honeypot].php\"><span style=\"display: none;\">county</span></a>",
"<a href=\"http://www.bigqns.com/[honeypot].php\"><div style=\"height: 0px; width: 0px;\"></div></a>");
$array_size = count($honey_pot_link);
$honey_pot = '<li>' . $honey_pot_link[rand(0, $array_size)] . '</li>';

I've replaced the name of the script I'm using with [honeypot] so as not to spoil the surprise for the bots crawling it! I just took the list of suggested links from the installation page on project honeypot, put them in an array and each time, pick a random one and put it in a list tag. That tag can then be put into the menu - For me, the last link on the list. It's invisible, as project honeypot tell you and different every time a bot looks.

If you find this helpful, do please let me know!

Technorati tags:

Posted by hounddog32 at December 31, 2005 07:01 PM

Trackback Pings

TrackBack URL for this entry:
http://www.hounddog32.com/mt-static/mt-tb.cgi/33

Comments

Posted by: Anonymous at December 31, 2005 07:01 PM

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Remember me?