Comment spam plugin
I’ve wrote a wordpress plugin that hopefully eliminates comment spam on our site as well as slows down the stupid comment spammers. The plugin is called SpamBam and it is released as freeware under the GPL license. The only drawback is that javascript is required to post a comment.
Update
The new version of SpamBam is out 1.2, it now allows Wordpress comment spam protection to work alongside SpamBam.
Installation
To install the plugin simply create a folder called “spambam” in the “wp-content/plugins/” directory and place the spambam.php file in that folder. So your full path to the plugin should be “wp-content/plugins/spambam/spambam.php”. Once you have copied spambam to the folder, you need to enable it in the plugins section of the wordpress admin.
- Download the current release
- Unzip and copy the whole spambam folder to your
pluginsdirectory. - Enable SpamBam in the WP Admin >> Plugins section.
- Done!
Optional configuration
SpamBam requires no configuration but if you wish to alter the delay option, by default SpamBam has a 30 second delay if it detects a comment spammer, you can change this in the spambam.php file to any value desired. The constant variable SPAMBAM_SPAMMER_DELAY is used to define the seconds delay. Change the following line (if required).
define('SPAMBAM_SPAMMER_DELAY', 30);
Comments 29
Hi!
Great plug in.
However, there is one small problem.
For some reason, this is overriding my comment moderation settings.
For example, I have a setting that says if a comment has two more http links, to hold it in moderation.
However, that is no longer working.
Can you please let me know what you might think is occurring?
My blog is http://www.writingwhitepapers.com/blog/
Mike
Posted 29 Mar 2007 at 4:32 pm ¶Hi Mike,
Glad you like the plugin
I shall have a look into that, my code might be overwriting the link moderation. I’ll let you know when there is an update.
Cheers
Gareth
Posted 29 Mar 2007 at 4:38 pm ¶Thanks Gareth
I must tell you, this is the only thing that seems to work with the new version of WordPress.
Everything else does not.
Hope you get that fixed.
Mike
Posted 29 Mar 2007 at 4:41 pm ¶Hi,
I have installed the plugin on a large Wordpress-mu site and we have some problems in a few cases. Can I contact you in via email?
Thanks,
Elad
Posted 06 May 2007 at 11:40 am ¶Hi Elad
Yes no problem, please email any details of problems with Spambam.
Thanks
Gareth
Posted 08 May 2007 at 8:15 am ¶When I enter a comment to test it, it treats it as spam. Is that what it supposed to do? I thought it would detect bots only. Thanks.
Posted 16 Aug 2007 at 4:11 pm ¶Hi Mario javascript and cookies are required to use the script, it does work because Spambam is installed on this site and you managed to enter a comment on here.
Posted 16 Aug 2007 at 4:43 pm ¶I have a problem on my website, there seems to be a conflict with another plugin ‘fgallery’. See the link for the error:
http://www.popkoorenjoy.nl/wp-content/plugins/fgallery/fim_photos.php?album=kermis-2007
What can i do?
Posted 15 Sep 2007 at 9:46 am ¶Hi Martijn
Please try and upgrade to the latest version of Spambam.
Posted 15 Sep 2007 at 10:28 am ¶I’ve come up with a similar, JavaScript-dependent method of defeating spam bots.
Basically, you start by renaming wp-comments-post.php, the script that processes the comment form. Then you hide the URL of the renamed script in an external JavaScript file. When a human user performs a specific task (such as filling out the answer to a challenge question), the URL is written back into the page and the form can be submitted.
If you don’t like challenge questions, delaying the re-writing of the URL by a few seconds should work just as well.
The post detailing this method is at
http://www.ardamis.com/2007/09/12/defeating-wordpress-comment-spam/
Good luck,
Posted 17 Sep 2007 at 5:25 am ¶-ardamis
@ardamis
That method is very flawed because as soon as the external js file is spidered your protection fails.
Posted 17 Sep 2007 at 8:15 am ¶Nice plugin for WP
Posted 21 Sep 2007 at 4:41 am ¶this is what i am looking for
I am testing this spambam plugin now by commenting.. i still don’t understand how this plugin works. clicking post now.
Posted 02 Oct 2007 at 5:23 pm ¶I am going to check your plugin !
Posted 04 Oct 2007 at 6:48 am ¶Hi, was the problem reported in the first comment resolved?
Posted 09 Oct 2007 at 8:41 am ¶Hi selad
Yes this problem has now been resolved
Posted 09 Oct 2007 at 8:42 am ¶Nice plugin! Tanks
Posted 01 Nov 2007 at 7:38 am ¶Thx for this nice Plugin…
Posted 31 Dec 2007 at 12:04 am ¶can you give me sql queries
Posted 07 Jan 2008 at 11:01 pm ¶Thx for this nice Plugin…
Posted 09 Jan 2008 at 5:00 pm ¶hi Gareth
Posted 04 Feb 2008 at 6:54 am ¶thanx for your plugin
but i have a small issue though
actually, it is the same problem, reported on the comment #6?, but i have both JS and cookies turned on. thats 100%, because i’ve been comenting on my blog before, and now, after a few hours it turns that i can’t do it. i’ve tried to refresh the page, but still nothing. what should i do now?
thanx
@luk
A new version is in the works, it should be released soon and it will fix your problems.
Thanks
Posted 04 Feb 2008 at 9:15 am ¶thanx Gareth
Posted 05 Feb 2008 at 1:27 am ¶also i have a small question
on my blog i have only registered users comemnting turned on. But somehow bots are sending comments also. So, i had to turn premoderation on. But i have so many premoderated messages everyday.
There is one small difference between a bot and a real person - bots does not have email field filled.
Is there any way to make a plugin, that rejects any comment without email field?
thanx
@luk
You should be able to do that in your Wordpress settings admin menu. The new version of spambam should hopefully eliminate your spam problem.
Thanks
Posted 05 Feb 2008 at 9:29 am ¶Thx alot
Posted 15 Feb 2008 at 9:51 pm ¶I used Akismet and this one! Like them both! Thanx for the site!
Posted 24 Mar 2008 at 4:22 pm ¶WordPress оченьхорошо защищает от спама, за что ему огромное спасибо
Posted 26 Oct 2008 at 8:10 am ¶here was so much potential for good work there, if you could get through to the thick-skulled business types.
Posted 16 Mar 2009 at 2:10 pm ¶WordPress оченьхорошо защищает от спама, за что ему огромное спасибо
Posted 19 Feb 2010 at 11:24 pm ¶Trackbacks & Pingbacks 2
[...] SpamBam prevents comment spam and fights against comment spammers by delaying their attempts. [...]
[...] SpamBan previene el spam y ataques a los comentarios, poniendo un delay a cada comentario. [...]
Post a Comment