Text Link Ads

Code Authors: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Thu Apr 26, 2007 8:48 pm Reply with quote Back to top

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');
View user's profile Send private message Send e-mail Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Sat Apr 28, 2007 3:42 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 99

PostPosted: Tue May 01, 2007 1:05 pm Reply with quote Back to top

Now I know what you are talking about... Wink Almost done getting this going... Thank you for this!
View user's profile Send private message Visit poster's website
montego
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 99

PostPosted: Tue May 01, 2007 1:27 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Tue May 01, 2007 2:54 pm Reply with quote Back to top

Mant thanks for that. I had not thought to check the XHTML compliance side.
I'm just off to work (night shifts Sad ) but as soon as I can I'l update the code in my initial post.
View user's profile Send private message Send e-mail Visit poster's website
thebishop
Newbie
Newbie



Joined: Nov 15, 2006
Posts: 12
Location: Fresno CA U.S.A

PostPosted: Wed Jan 30, 2008 3:28 pm Reply with quote Back to top

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.
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Wed Jan 30, 2008 4:00 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2008 phpBB Group
All times are GMT
Forums ©
Remortgages | Debt | New York Hotels | Apply for Credit Card | Car Finance

Scripts.com - Get the best scripts NOW!
linear-bunchlinear-bunchlinear-bunch