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

By Jeremy Schoemaker

Jeremy "ShoeMoney" Schoemaker is the founder & CEO of ShoeMoney Media Group, and to date has sold 6 companies and done over 10 million in affiliate revenue. In 2013 Jeremy released his #1 International Best selling Autobiography titled "Nothing's Changed But My Change" - The ShoeMoney Story. You can read more about Jeremy on his wikipedia page here.

75 thoughts on “The Best Anti-Spam Comment Plugin for WordPress – Auto Close Posts”
  1. 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!

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

  3. 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..


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

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

    Looks nice. 🙂

  6. 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.

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


  8. 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.

  9. 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.

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

  11. Believe. Act. Achieve! - dcr Blogs dot Com » Blog Archive » No, You Can’t Comment Here No More says:

    […] Actually, you can, but I’ve added one more plugin in my anti-spam arsenal: Close Old Posts. (Found by way of Shoemoney.com.) […]

  12. 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.

  13. “some kid named Matt Mullenweg”

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

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

  15. 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!)

  16. 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

  17. 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).

  18. […] been “not cuite what I was looking for”. It was a relief to read Jeremy’s post where he point’s out a nifty little plugin that stops the perstering of my […]

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

  20. 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.

  21. 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.

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

  23. 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.

  24. 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?

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

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

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

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

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

  30. 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.

  31. 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.

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

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

  34. 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.

  35. 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.

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

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

  38. 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.

  39. […] Shoemoney on the best Anti-Spam comment plugin for WordPress. […]

  40. 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)

  41. […] Shoemoney on the best Anti-Spam comment plugin for WordPress. […]

  42. 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

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

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

  45. 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.

  46. 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?

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

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

  49. […] The Best Anti-Spam Comment Plugin for WordPress – Auto Close Posts […]

  50. 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.

  51. […] I started to look for a solution and that is when I came across this post by Shoemoney, where Jeremy talks about a plugin which closes comments on older posts since he found that those […]

Comments are closed.