Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Anti-spam Honeypot (Read 3571 times)
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Anti-spam Honeypot
Aug 19th, 2012 at 10:00pm
Print Post  
Another Anti-spam measure - This creates an 'invisible' field that spam-bots will fill in but users using CSS enabled browsers will not.

For YaBB 2.5 (not tested on 2.4 but it should work)


Zip Package:
----------------
honeypot.mod


Installation:
----------------
1) Modify YaBB files manually or use Boardmod. (The two css files need to be copied to the folder you're directing BoardMod to under /Templates/Forum/ so BoardMod will find them - You'll probably have to create that folder as it isn't a yabb2 folder.)
2) Upload modified files to their proper places on your server in ASCII mode.


Files to edit:
-----------------
cgi-bin/yabb2/Admin/Modlist.pl
cgi-bin/yabb2/Sources/Register.pl
cgi-bin/yabb2/Languages/English/Error.lng
cgi-bin/yabb2/Languages/English/Register.lng
yabbfiles/Templates/Forum/default.css
yabbfiles/Templates/Forum/yabb21.css

Note: the additions to Register.lng are generic form labels to trick the the spambots by making the field look like one that might have been created by Extended Profiles. You should probably edit these for your own forum.


Mod History:
----------------
1.0 Alpha - First Release - 19th August 2012

Edited to make directions clearer.
« Last Edit: Aug 20th, 2012 at 12:39am by Dandello »  

honeypot.zip ( 1 KB | Downloads )
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Anti-spam Honeypot
Reply #1 - Aug 19th, 2012 at 10:48pm
Print Post  
Hi Dandello,

Not tested with BoardMod then?

BoardMod can only modify files in the 'yabb2' directory, so the install will fail on the CSS edits. If you want to modify files in the 'yabbfiles' directory through BoardMod, then you'll need to add notes to the mod file or first post telling users they need to copy the CSS files from the 'yabbfiles/Templates/Forum/' directory to the 'yabb2' directory before installing the mod, and then change your 'edit file' steps to:

Code
Select All
<edit file>
default.css
</edit file>

<edit file>
yabb21.css
</edit file> 


Or, you could just include the CSS code in the first post or a separate text file and tell users they'll need to add it to their style sheets.

Smiley
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: Anti-spam Honeypot
Reply #2 - Aug 19th, 2012 at 10:59pm
Print Post  
Or I could remember to remind people to put those two files under Templates/Forum/ (which is where I kinda assumed they should go) and then Board Mod can find them, too.

Hey - at least I got BoardMod to work. Finally, after much swearing.
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Anti-spam Honeypot
Reply #3 - Aug 19th, 2012 at 11:02pm
Print Post  
Dandello wrote on Aug 19th, 2012 at 10:59pm:
Templates/Forum/

But there's no such directory under the 'yabb2' folder...
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: Anti-spam Honeypot
Reply #4 - Aug 19th, 2012 at 11:14pm
Print Post  
But BoardMod can't find them in yabbfiles/Templates/Forum/, so why not just copy /Forum into yabb2/Templates and then remember to put it where it belongs when you FTP it?   Roll Eyes

or... I could change it to just putting those two files into the yabb2 directory - but they still have to remember to put them back.


  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Anti-spam Honeypot
Reply #5 - Aug 19th, 2012 at 11:20pm
Print Post  
Dandello wrote on Aug 19th, 2012 at 11:14pm:
But BoardMod can't find them in yabbfiles/Templates/Forum/, so why not just copy /Forum into yabb2/Templates and then remember to put it where it belongs when you FTP it?

That's fine - anywhere will work as long as they are in the 'yabb2' folder. I didn't think that was what you meant because you said put those files "under Templates/Forum/". Smiley

Dandello wrote on Aug 19th, 2012 at 10:59pm:
Or I could remember to remind people to put those two files under Templates/Forum/ (which is where I kinda assumed they should go) and then Board Mod can find them, too.

  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: Anti-spam Honeypot
Reply #6 - Aug 20th, 2012 at 12:56am
Print Post  
Changed the instructions to (hopefully) make them clearer.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint