Comment Spam Trap Wordpress Plugin
- Posted by B Jones on February 22nd, 2007 - Comment on this Post »
About the Comment Spam Trap Wordpress Plugin
Tested in: Wordpress 2.0.X - 2.1
Comment Spam Trap is a simple plugin that kills comment spam, including the hated trackback spam. This is my first wordpress plugin, and I made it because I was fed up with all of the comment spam. Since it works so well, I decided to share it.
Comment Spam Trap kills spam in 3 ways:
- Invisible Email Field
The plugin adds an invisible email field that is invisible to
human visitor, but very visible to the spam bots. When they fill it in, the message is
considered spam. - One Extra Required Email Field
Just to confuse the spam bots further, an identical email field is added,
with the only difference being that this on is visible, and must be filled
in.
None of these methods will be 100% fool proof, but from my
experiences, they have all but eliminated by comment spam issues.
DOWNLOAD
You can download the Comment Spam Trap here: download comment-spam-trap (zip file 12KB)
INSTALLATION
1. Download and UnZip the Zip Archive
When you have unzipped the plugin, there should be a folder called wp-cstrap that contains 3 files.
- comment-spam-trap.php
- style.css
2. Upload the entire wp-cstrap directory to your Wordpress plugins directory.
3. In your Wordpress Plugins administration panel, activate the Comment Spam Trap plugin.
4. That’s it. Comment Spam Trap is now relieving you of comment spam. By default, you will not be notified when comments are trashed, but if you would like to be notified, you can edit the comment-spam-trap.php file and add your email address. See the configuration instructions below.
CONFIGURATION
1. Do You Want All Caught Comment Spam Emailed To You?
The plugin trashes all spam messages, but to be on the safe side, you can have all messages emailed to you (or your enemies
). Just fill in an email address below.
Like This:
$cst_email = ‘example@yourdoman.com’;
2. Error Message Options
Just in case we get some humans setting off these traps, we have some nice warning messages to help them along. Feel free to change these.
$invisible_field_message = “Thanks but dont fill out that field. :)”;
$required_field2_message = “Thanks, but please verify your email. :)”;
Feel free to ask questions, or share comments here.
If you enjoyed this post, make sure you subscribe to my RSS feed!

February 22nd, 2007 at 11:46 pm
I use spam karma and it does just fine.
February 23rd, 2007 at 6:48 am
[...] Comment Spam Trap is a simple, yet effective plugin that kills comment spam, including the hated trackback spam. [...]
February 23rd, 2007 at 9:42 am
I also use spam karma. It is cool
February 23rd, 2007 at 12:19 pm
[...] Comment Spam Trap es un plugin simple pero efectivo que aniquila los comentarios indeseados, incluyendo el denostado spam de los trackbacks. [...]
February 23rd, 2007 at 12:41 pm
[...] Comment Spam Trap es un plugin simple aunque efectivo que mata comment spam incluyendo el tan odiado trackback spam. [...]
February 23rd, 2007 at 12:51 pm
Neat! I’m using a contact form that has the same basic principle. There’s a hidden (commented out) Bcc field that cannot be completed if the email is to be sent. Of course, it’s then passed through Akismet for good measure, but the first barricade stops all but the most well-written crapbots.
February 23rd, 2007 at 1:00 pm
Some of you may have noticed that I removed the feature that checks trackback spam. Evidently, this feature could be a security issue. Someone could use your site to do DDOS attack by continually sending trackback requests with the victim sites url. Or by using a number of sites with this plugin, and sending hundreds of requests to each Comment Spam Trap site with the same victim url. This would result in all of the host sites requesting from the victim site at the same time.
So, though it really worked well, I have decided to remove the trackback feature. This isn’t really an issue for me, since only a very small percentage of my spam is trackback spam, and if it gets bad, I can always disable the trackbacks.
February 23rd, 2007 at 3:54 pm
Comment Spam Trap…
Comment Spam Trap is a simple plugin that kills comment spam, including the hated trackback spam.
Table of Contents
Name(æ’ä»¶å称)
Author(æ’件作者)
Version(æ’件版本)
Download(下载æ’件)
Introduction(æ’件介ç»ï¼‰
…
February 23rd, 2007 at 3:59 pm
HI,I’VE Collcet this plugin in my blog:
http://www.tearsea.com/?p=551
great plugin and thanks~~~
February 23rd, 2007 at 4:44 pm
[...] mussten wir heute schon wieder 550 Spam-Bot-Einträge löschen. Möglicherweise hilft da die neue Comment Spam Trap von SEOlogs.com weiter? Eine herrliche Ergänzung zur Nofollow-Spam-Abwehr. Die Spam-Falle gaukelt [...]
February 24th, 2007 at 9:11 am
I have been using this plugin for a couple of days now and it’s working like a charm. I like that it is very simple to install and it starts working right away (Plug and Play?). I had been thinking about installing akismet all this time, but the registering part of it had kept me from doing it (yeah I know I’m lazy).
It has been a 360 degrees change for me in terms of spam (I’m even enjoying having the email confirmation thing on and seeing all that damn spam go fishing!). I have a similar plugin for my phpbb forum. These are probably my 2 favorite plugins right now. I am not a technical blogger so user friendly plugins are essential for me.
Thank you Mr. Jones!
February 25th, 2007 at 9:11 am
Cool. Glad you liked it fmontero. What’s the url for the phpbb plugin?
February 25th, 2007 at 6:19 pm
I installed this plugin three days ago. I had the email to me turned on and it works wonderfully. It is very easy to install and activate. I’ve installed it another one of my blogs and turned off the email to me on the first one. It is great to have a plugin this simple and effective against spam.
Thanks so much, I’ll be passing the word along in a blog post. I want everyone to know about this great plugin.
February 25th, 2007 at 7:14 pm
[...] It is a simple concept and one I’m surprised someone hasn’t come up with before. SEOlogs.com is who we have to thank for the Comment Spam Trap Wordpress Plugin. [...]
February 26th, 2007 at 8:20 am
Antworten zu Nofollow Case by Case und rel=”external nofollow”…
Seit Veröffentlichung meines WordPress Plugins “Nofollow Case by Case” kamen einige Fragen auf, die ich teilweise schon in den Blogs der Fragenden direkt beantwortet habe. Hier noch einmal einige Erläuterungen:
1. Warum sollte ich in mei…
February 28th, 2007 at 6:42 pm
I just added this option to one blog and will be adding it to three others. Many thanks for the work that you put into developing a highly useful plug-in!
March 2nd, 2007 at 1:54 pm
[...] Fazit: Bedingt empfehlenswert. Es wäre besser wenn das Plugin die erkannten Spam Kommentare direkt löscht. Download: Comment Spam Trap [...]
March 4th, 2007 at 1:49 am
[...] Comment Spam Trap is a simple, yet effective plugin that kills comment spam, including the hated trackback spam. [...]
March 5th, 2007 at 1:10 am
[...] Comment Spam Trap [...]
March 20th, 2007 at 4:17 pm
You have an offending in your code. It causes a validation error.
It is just above the line:
It ends below the end div statement. I’ve removed the code and it works fine and validates. apparently enclosing a div inside a p is offensive, go figure.
March 23rd, 2007 at 9:40 am
Dave,
Thanks for pointing this out, but I think your code didn’t show up. It’s just above the line??? Which line?
Thanks,
Badi
May 20th, 2007 at 2:58 am
[...] Visit [...]
July 3rd, 2007 at 4:44 am
Hello,
I implemented the plugin and it is a very good idea.
However, it fails to distinguish between a spam robot and a few types of human, namely those using text-only browsers such as Lynx, elinks and certain visually impaired technologies.
I think this could be improved a little, or if not then perhaps the false positive page could be a little more helpful?
One approach would be to pre-loading hidden values with the previously submitted values and then asking one more question. How would I do that with this plugin?
September 7th, 2007 at 3:08 am
[...] Comment Spam Trap kills trackback and regular comment spam. I am not sure if it is necessary with Akismet present, but I still use it…just in case. Version 1.0 is what you want. [...]
September 15th, 2007 at 4:04 am
[...] similar?.ACTUALIZACIÓN: Creo que lo he solucionado. He sustituido el plugin que usaba por el Comment Spam Trap. Ya no tenéis que volver a escribir el texto de ninguna imagen. Sólo tendréis [...]
October 9th, 2007 at 7:40 pm
my theme came with an integrated spam filter, but I don’t think it’s much good, hopefully this one is better?
October 9th, 2007 at 7:41 pm
I need a new spam filter for my up and coming blog, looks like a good start
November 14th, 2007 at 8:02 am
[...] want to put Akismet and the installed Comment Spam Trap plug-in to the ultimate test by measuring just how much much of a magnet this type of article will [...]
November 14th, 2007 at 3:40 pm
Comment 24 is just priceless…
November 21st, 2007 at 3:15 pm
[...] Visit & Download [...]
November 22nd, 2007 at 4:56 pm
[...] wird der Kommentar gar nicht erst in die Datenbank geschrieben. Als Basis hierfür habe ich das Comment-Spam-Trap-Plugin von seologs.com benutzt, für meine eigenen Bedürfnisse aber etwas [...]
November 30th, 2007 at 1:40 pm
[...] plugin installed it hasn’t been able to catch all comment spam. Last week I installed the Content Spam Trap plugin and so far I am loving it. I haven’t had to delete any spam since I installed the [...]
December 3rd, 2007 at 9:51 am
[...] can be risky and may intimidate non-programmers. Turns out there is a good alternative though - the Comment Spam Trap WP [...]
December 3rd, 2007 at 5:57 pm
[...] can be risky and may intimidate non-programmers. Turns out there is a good alternative though - the Comment Spam Trap WP [...]
December 21st, 2007 at 10:06 am
It’s a little too complicated..I think Spam Karma does it’s job good :).
March 18th, 2008 at 11:38 pm
Its not foolproof. Manual spam still works, as evidenced by the comment by ENLARGEMENT!
March 19th, 2008 at 8:03 am
Hey Charles.
It’s definitely not fool proof. Manual comments still work, but that’s sort of the point
This plugin does stop the flood of automated spam comments though.
April 18th, 2008 at 7:01 am
Thanks for the plugin. It works with no problem.
May 15th, 2008 at 4:41 am
Just in case we get some humans setting off these traps, we have some nice warning messages to help them along.
July 14th, 2008 at 5:30 am
Thanks.good..
August 8th, 2008 at 9:59 pm
[...] Comment Spam Trap Wordpress Plugin - SEOlogs.comComment Spam Trap Wordpress Plugin. Posted by B Jones on February 22nd, 2007 - Comment on this Post About the Comment Spam Trap Wordpress Plugin [...]