74

The Best Anti-Spam Comment Plugin for Wordpress – Auto Close Posts

Posted April 7th, 2008 by Jeremy Schoemaker

Akismet, which luckily comes bundled with Wordpress (and also owned by Wordpress’s parent company Automatic) is one of the best anti-spam plugins for Wordpress. But I still get a bunch of spam and it doesn’t take a rocket scientist to see where its comping from. Basically people hammer the crap out of search engines looking for blogs and keywords using a dictionary file most likely. Once spammers find 1 post they then will start hammering your blog from various proxies (most of which are akismet blacklisted) starting from your first post (http://www.shoemoney.com/?p=1, http://www.shoemoney.com/?p=2, http://www.shoemoney.com/?p=3, etc, etc.) and just climbing the way up until they get a 404 (or probably multiple 404’s cause some posts will be missing. Course they all do these with random emails/proxies/names and while they are easy to identify they take up time.

After even further analysis of my comment spam that passes the Akismet test the number is actually about 95% are from posts that are 2 weeks or older. So there we go. Now I just need to write a plugin that will automatically not allow comments or trackbacks on posts that are 2 weeks or older. So I start searching online and… looks like some kid named Matt Mullenweg had the same idea years ago with wordpress 1.x

You can get the plugin here.

Its a very simple plugin that checks the age of the post before loading and if its older then the days specified (default is 14) then it closes comments and pingbacks. WINNAR

Disclaimer

Before acting on this post, be sure to read my Disclaimer.

- Comment Likes - Comment Dislikes

74 comments. What say you?

  1. Good Comment?
    nubaccili

    exciting and informative, but would be suffering with something more on this topic?

  2. Good Comment?
    Ajay

    My plugin Auto-Close adds several more features including the ability to close comments and pingbacks separately as well as include certain posts/pages from having their discussions closed.

    The latest version also allows the user to delete post revisions. Do give it a shot and let me know.

  3. Good Comment?
    Gorilla Gripper

    Thanks for the tip. I have a friend who complains constantly about the spam on his blog.

  4. Good Comment?
    Nate Hill

    That looks like a really useful plugin should save webmasters a lot of time deleting and approving blog comments etc…

  5. Good Comment?
    Not John

    That’s great. I am going to download now.

  6. Good Comment?
    Julian

    Nice! Thank you a lot. I moderate every comment on my blog, but sometimes there are really good comments to post which are very old. These are just one out of ten, but still visitors should have at least the posibility to comment. Does it count for trackbacks, too?

  7. Good Comment?
    JustAnIdea

    Why not fine tune it and block only those posts older than 14days that contain URL links? Just free text with no link could be let through no matter how old the post.

  8. Good Comment?
    shanker bakshi

    Yes I wonder when akismat is in action why sometimes i hit by some span comments -okay alright i may try this out.

  9. Good Comment?
    Nicholas James

    Loved the “some kid” part :) …but its a great plugin :)

  10. Good Comment?
    Nicholas James

    It kills the spammers…it has great benefit :)

  11. Good Comment?
    Nicholas James

    Most people do…and if they don’t they are insane lol its one of the most useful plugins for wordpress.

  12. Good Comment?
    Nicholas James

    Shoe knows…he’s blogged about him before.

  13. Good Comment?
    Mayank Rocks

    I have noticed that the similar spams are coming over and over again. Akhismet does block it, but sometimes it blocks pingbacks etc also which you want to approve. And sometimes some natural comments get blocked too. I am trying to block directly frmo “comments tab” in wp-admin. It really helps!
    I will check the plugin now. Thanks

  14. Good Comment?
    markus941@gmail.com

    I think it might be even better if it switched just those posts to “you need to login to post a comment” in case someone wants to add something valuable (it’s just an extra hoop for them to jump through so you wont get spammed plus you might get another subscriber/member)

  15. Good Comment?
    Loadedarticles blog

    Thanx for the tips mate
    i have not really used any anti spam before

  16. Good Comment?
    Flimjo

    My only problem with this plugin is that you have to close older posts. I, on the other hand, like to see readers’ comments, and I want to keep that avenue open for them on older posts.

  17. Good Comment?
    Flimjo

    Me too. I get a bunch of spam comments, but Akismet only catches about 95% of them.

  18. Good Comment?
    Flimjo

    I’ve seen this plugin before, and I’ve seen other blogs with closed comments. It’s pretty effective.

  19. Good Comment?
    Lynx

    no he’s not serious…

  20. Good Comment?
    Lynx

    Captain Obvious is in the building!

  21. Good Comment?
    SEO web hosting

    Thanks for the tip. I did not have this plug in installed, yet.

  22. Good Comment?
    Keylogger Hater

    I’ve already seen something like this on the other blogs, so you apparently won’t be first.
    Hope this one help, damn spammers regularly annoy me on my content sites.

  23. Good Comment?
    Funky South

    interesting, I will take a look, thanks for sharing !

  24. Good Comment?
    Yudhi Arie Baskoro

    i think i might use this one too …

  25. Good Comment?
    Ken Savage

    OoooO RLY

  26. Good Comment?
    Terry Tay

    What if you have posts that you still want people to comment on that are old? Perhaps there needs to be some other plug-ins that will help.
    ~Terry

  27. Good Comment?
    Terra Andersen

    Wonderful! Akismet doesn’t catch nearly as much spam on my blog as I’d like. I end up editing many comments everyday.

  28. Good Comment?
    Mark

    Lol, I’m pretty sure he knows ;-) After all, he’s had Matt on his radio talk show.

  29. Good Comment?
    Terry Tay

    He knew who he is, but was being funny by saying “some kid matt mullenweg”…I guess he just assumed most people would get it.
    ~Terry

  30. Good Comment?
    sikantis

    Great post! I don’t get yet a lot of spam, hope this will stay like this.

  31. Good Comment?
    Travis

    I find that Akismet weeds out 99% of the comment spam. However, I’ve used this plugin as a backup on some other sites. I usually extend it to 30 days.

  32. Good Comment?
    Justin Chelf

    Ya, I use this on some of my blogs. The combination of things works to success.

  33. Good Comment?
    Affiliate Confession

    Never thought about getting spam on posts older than 2 weeks, but I guess that’s what spammers do.

  34. Good Comment?
    Hustle Strategy

    I wonder how long this post was sitting idle in the shoemoney stock pile. the plugin hasn’t been modified in over a year.

  35. Good Comment?
    Hustle Strategy

    more traffic, more problems, i guess

  36. Good Comment?
    Aaron Nimocks

    I noticed this also awhile back but never really had the energy to go find a solution. Thanks for helping us lazy people! :)

  37. Good Comment?
    Hustle Strategy

    Are you going to take down the favorite post and most commented posts? seems they will be left out…

  38. Good Comment?
    Yash

    We got the same thing in movable type by Mark. I think its on mt-hacks.com or something. I wonder who thought of it first?

  39. Good Comment?
    Tamar Weinberg

    He knows.

  40. Good Comment?
    Tamar Weinberg

    I think he was kidding, Walt. ;)

  41. Good Comment?
    Tamar Weinberg

    I hear you on that. I sometimes get some comments on posts that are *really* old and that are still pretty valuable. When I see one of my older (and not so good) posts getting a slew of new comments, I manually disable comments, but otherwise I keep it as-is.

  42. Good Comment?
    Chris Jacobson

    Great plugin Shoe! I’m getting a lot of spam on posts 6 months old and more. This will solve that little problem. :)

  43. Good Comment?
    Sucker

    That’s a pretty good one, but WP-SpamFree is even better.

  44. Good Comment?
    Sean

    interesting thought. my guess is that since 95% is spam people aren’t commenting on the old stuff enough to matter and search engine converage of the post is probably saturated as well.

  45. Good Comment?
    Jim

    I actually posted about this some time ago and someone suggested comment timeout… It has virtually eliminated all of the automated comment spammers on my blog.

  46. Good Comment?
    Sean

    good analysis on covering the 95% of your comment spam penetrating your filter. You must have been an Admin at some point ;)

  47. Good Comment?
    Greg

    I agree with Doug’s point. It’s nice when a post from months ago can flair up with a few recent comments. Especially since, give all the SEO traffic, that old post could well be someone’s first introduction to your site.

    Maybe there could be a higher bar for submitting comments to an old post, like registering or CAPTCHA (though I hate CAPTCHA).

  48. Good Comment?
    jtGraphic

    This also helps keep comments on dead topics to a minimum… Good call.

  49. Good Comment?
    NOname

    Actually I had a problem with spam comments. What I did was javascript encypte the comment form in the wordpress comment.php template. Have not had 1 spam in like 3 weeks. Because bots don’t parse javscript so the can’t see the form, Hence they have nothing to fill out and hit POST with this.
    If your interested more in this check out.
    Javscript Encode decode

  50. Good Comment?
    Douglas Karr

    Why would you not want to keep old threads alive through user-generated content? Isn’t there some benefit to that (wish you had subscribe to comments!)

  51. Good Comment?
    Feed Flare

    Thanks for link Jeremy. I went almost a month with no spam when I was new and now…holy cow!

  52. Good Comment?
    Jonathan Volk

    Nice! :D

  53. Good Comment?
    Walt

    “some kid named Matt Mullenweg”

    Some kid…you’re not serious, are you? Matt Mullenweg is the developer of WordPress.

  54. Good Comment?
    Paul

    absolutely hate spam. We get them all the time but I know that you are getting hit so much more than I do, so I can only imagine how that frustrating that could be.

    Interested to see how well it works.

  55. Good Comment?
    Website Reviews

    I am not sure I would want my older posts to be closed, but it is an interesting concept.

  56. Good Comment?
    Tim

    I’ve been using Spam Karma 2 and it works great. It uses Akismet and post age and other factors to detirmine if it’s spam. So if you want to keep the older posts open, but still have the filter take the fact that it’s old into account, SK2 might be for you.

  57. Good Comment?
    Nick

    “some kid named Matt Mullenweg” lol

  58. Good Comment?
    Michael D

    Seems like a good option although some posts I may leave open for further commenting. For me, it’s not the traditional spammers that are clogging things up (akismet working well there) but the d’bags that post keyworded urls on posts. I’ve gotta look into some kind of filter for that.

  59. Good Comment?
    Nate

    I’ve been wondering about this myself but don’t get enough to really worry about.

    Thanks!

  60. Good Comment?
    Affiliate Confession

    So how much comment spam do you get that gets through Akismet?

  61. Good Comment?
    Sebbi

    I recommend http://jamesmckay.net/code/comment-timeout/ … it is more flexible than Matts simple solution and you can override it for individual posts.

  62. Good Comment?
    Brian Mark

    I’ve been thinking about doing that manually, but this makes things pretty simple. Of course, I don’t post nearly as often as you do, so it’s got to be awesome on a whole new level for you.

  63. Good Comment?
    Meethere

    But what if we want comments to continue ?
    Is there any custom option for that ?

    Looks nice. :)

  64. Good Comment?
    Search Engine Optimization Journal

    Ah, this is great! We can’t stand the spam that gets past that damn Akismet filter. Thanks!

  65. Good Comment?
    DougS

    Askimet is the definite tool of choice, we install by default on all blogs

    Doug

  66. Good Comment?
    Mark

    Aside from the spam benefit… this plugin sounds like it will be great for those older posts that still get questions after 6 months. Not that I mind the questions, but when a timeline passes (Like a contest) and you still get people asking to be included… well..

    Mark

  67. Good Comment?
    Josh

    The Matt Mullenweg you mention is the founder of Wordpress and Automattic, in case you didn’t know.

  68. Good Comment?
    Alejandro Reyes

    yo shoe ! it’ll definitely help in the long run for me as i barely started my blog but it’s definitely a hot plugin!

    do you keep yours to the default 14 days?

    just curious.

    thanks holmes!

Join the Discussion

*Discount rate good on new registrations only. Credits or refunds cannot be issued on previous registrations. Discount rate good through February 6, 2010, prevailing rate applies after that.