| Author |
Message |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Thu Apr 26, 2007 8:48 pm
|
|
For those of you participating in Project Honeypot, here is a simple script to randomise your honeypot.
Create a PHP file, call it whatever you want and place it in your includes/custom_files directory.
| Code: |
$i = 0;
while ($i <= 3) {
switch(rand(1,9)) {
case 1:
echo '<a><click></a>';
break;
case 2:
echo '<a><img></a>';
break;
case 3:
echo '<a>click here</a>';
break;
case 4:
echo '<div><a>click here</a></div> ';
break;
case 5:
echo '<a></a>';
break;
case 6:
echo '<!-- <a>click here</a> -->';
break;
case 7:
echo '<div><a>click here</a></div> ';
break;
case 8:
echo '<a><span>click here</span></a>';
break;
default:
echo '<a><div></div></a>';
break;
}
$i++;
}
|
In your includes/custom_files directory create a file called custom_footer.php (if you do not already have one, then simple add this line to to it
| Code: |
| include('includes/custom_files/yourscript.php'); |
|
|
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Sat Apr 28, 2007 3:42 pm
|
|
Just in case you are wondering, the links above do not actually have to appear on the page, the are deliberately made invisible so they are only seen by crawlers and bots. |
_________________ Nuke Reviews |
|
|
 |
montego
Site Admin


Joined: Jan 06, 2006
Posts: 99
|
Posted:
Tue May 01, 2007 1:05 pm
|
|
Now I know what you are talking about... Almost done getting this going... Thank you for this! |
|
|
|
 |
montego
Site Admin


Joined: Jan 06, 2006
Posts: 99
|
Posted:
Tue May 01, 2007 1:27 pm
|
|
BTW, in case anyone is interested, in order for these to not cause XHTML validation errors (the links provided by Project HoneyPot that is), two of the above "forms" need augmenting as follows:
| Code: |
case 2:
echo '<a><img></a>';
break;
|
Edit: Uuuggghhh... sometimes BBtoNuke can be such a pain! The above scenario did not come out right. In words: you need to add an alt="" attribute to the tag as well as end it with a space followed by />
| Code: |
default:
echo '<a><span></span></a>';
break;
|
These should still work just fine. |
|
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Tue May 01, 2007 2:54 pm
|
|
Mant thanks for that. I had not thought to check the XHTML compliance side.
I'm just off to work (night shifts ) but as soon as I can I'l update the code in my initial post. |
|
|
|
 |
thebishop
Newbie


Joined: Nov 15, 2006
Posts: 12
Location: Fresno CA U.S.A
|
Posted:
Wed Jan 30, 2008 3:28 pm
|
|
I hope this isn't too off topic but it is regarding the honeypot project.
I have setup my honeypot but i don't know were to put the links at in my sites files.
These are the files i put them in but their not doing anything yet and i get hit all of the time by spammers and harvesters.
| Code: |
/public_html/modules/php
/public_html/modules/Donations/config.php
/public_html/modules/Content/index.php
/public_html/modules/AvantGo/index.php
/public_html/modules/Reviews.index.php
/public_html/modules/Submit_News/index.php
/public_html/modules/Your_Account.index.php
/public_html/modules/IP_Tracking/index.php
|
I added the honeypot link after the ?> at the end of the code because if i add it before my site breaks and wont load. I'm just not sure what files to add the honeypot links to and were it goes in the file. |
_________________ In 15 years there wont be a drop of oil left on the planet, Are you ready. |
|
|
 |
Guardian
Site Admin


Joined: Jan 06, 2006
Posts: 3779
Location: Poland
|
Posted:
Wed Jan 30, 2008 4:00 pm
|
|
If I remember correctly ('m still trying to download my back up files lol) they give you code to put into a file which you upload to your site. You then link to this file using code they give you - the links don't actually work in as much as the link is not clickable but if the link is then crawled and used, it trips the honeypot. |
_________________ Nuke Reviews |
|
|
 |
|
|