PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2013-05-09 20:02:37

Koos
Administrator
Registered: 2007-01-14
Posts: 524
Website

Honeypot StopForumSpam Mod 1.0

Code:

##
##
##        Mod title:  Honeypot + StopForumSpam Mod
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.*
##     Release date:  2013-05-09
##           Author:  Koos (pampoen10@yahoo.com)
##Based on patch by:  Reines (jamie@jamierf.co.uk)
##
##      Description:  Spam Prevention Mod
##
##   Affected files:  header.php
##                    profile.php
##                    register.php
##                    lang/English/profile.php
##                    lang/English/register.php
##                    style/imports/base.css
##
##       Affects DB:  New table:
##                       'test_registrations'
##                    New options in 'config' table:
##                       'o_stopforumspam_check'
##                       'o_stopforumspam_api'
##
##            Notes:  You can skip steps 7-21 and 31-33 if you do not need the
##                    ability to manually report spammers to the StopForumSpam
##                    database. Following these steps will add an extra option for
##                    admin when deleting users called "Delete user & report spam".
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download here

Offline

 

#2 2013-05-09 20:05:19

Koos
Administrator
Registered: 2007-01-14
Posts: 524
Website

Re: Honeypot StopForumSpam Mod 1.0

I was looking for a spam solution for PunRes and discovered that the FluxBB forum uses a Honeypot + StopForumSpam combo. Reines (one of the FluxBB developers) was friendly enough to share the patch to add this method of spam protection here. This mod is based on this patch. All I added was options to enable/disable certain features, and also some stats in the mod's admin cp.

The Honeypot blocks almost 100% of the bots. And the StopForumSpam as Reines mentioned serves as a second barrier against human spammers.

The greatest thing about this mod is that it's completely invisible to normal users!

Here is an explanation by Reines on how it works:

Reines wrote:

We have the username field renamed on the register form, and a new hidden field added with the old name. When the form is submit we check if the hidden field has been filled out, if it has then the user is a bot. This seems to catch 100% of bots. Some of the bots target stock PunBB/FluxBB installs and hence fill out the field with the old name and leave the new field blank, hence the registration is denied as the username field is blank. Some other bots fill out all fields, hence the registration is denied because they filled out the hidden field.

If they pass those checks, we check the IP and email address (not username) against the stopforumspam API. This catches a few human spammers.

Some additional info:

http://fluxbb.org/forums/viewtopic.php?pid=43297#p43297
http://fluxbb.org/forums/viewtopic.php?pid=34372#p34372
http://fluxbb.org/forums/viewtopic.php?id=5263
http://fluxbb.org/forums/viewtopic.php?pid=31641#p31641

Some screenshots of the mod's admin cp (from PunRes):
http://www.punres.net/files/projects/pr_622/rid_1007/Honeypot_SFS_scr1_settings.png

http://www.punres.net/files/projects/pr_622/rid_1007/Honeypot_SFS_scr2_stats.png

Offline

 

#3 2013-05-14 11:33:02

doki
Member
Registered: 2007-04-30
Posts: 225

Re: Honeypot StopForumSpam Mod 1.0

again. Thanks koos for this mod smile

Offline

 

#4 2013-05-16 19:53:20

fab12345
New member
Registered: 2013-05-16
Posts: 1

Re: Honeypot StopForumSpam Mod 1.0

Thanks I had put something together using StopForumSpam (likely based on another PunBB SFS mod I can't remember about), however if a question does not need to be used on the forum, I think it's better. I have some non english native users that get confused sometimes.

Once had a rather stubborn troll who gloated that we couldn't stop him because he would use anonymizing services... sadly SFS rained on his parade, as it turns out most anonymous services are abused by spammers and the IPs are blocked.

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.