Automatically Close Comments on Older Posts to avoid Spam – WordPress Blog

Comments are really important to make a community around a blog but they are the most used source of spamming as well. Spammers used to run bots to populate your comments section with lot many links related to some sites. Yes, Akismet is there to filter them as Spam but still those comments occupies nice amount of space in your database (if not deleted). If you are having a popular blog then you must be getting hundreds (even thousands) of spam on daily basis. To make your life bit easier, you may use the option to close comments on older posts.


Most of the time people used to comment on latest posts or newer posts. In WordPress Admin panel, you may choose the option “Automatically close comments on articles older than some days”, you can set the number of days in the box provided over there. Here is the location of this option on WordPress Admin Panel,

Login to WordPress Panel ==> Settings ==> Discussion ==> Other Comment Settings


Here you can see an option as “Automatically close comments on articles older than some days”. You can change the limit (in days) by providing the value in that box. Most used value is 90 which means no one can comment on a post older than 90 days, which is nice amount of time to comment on a post.

DISQUS users can also set this limit thru Disqus admin panel. To do that, go to the Settings tab in your DISQUS panel and then change the limit in “Moderation” panel to some value so that comment section will not appear in the posts published before those many days.


To avoid Spam on your blog, you may use Mathematical Calculation Plugin which will ask the visitor to enter the correct sum of a particular set of numbers. But in case you are using WP Super Cache on your blog for caching, then you may face a bug with that plugin. Visitor may not be able to drop comment because this plugin will throw error even when the visitor is providing correct answer. You will have to delete cache in that case.

Read: Spam Protection By Simple Math Option

So you can trust Akismet and set the number of days for no comments to minimize the number of spam per day.

Enjoy the spam free blogging.

Sanjeev Mishra is a professional blogger and an Internet Marketing Consultant based in India. He has built the Internet Techies to provide you updates in technology and web application area.
  • I never saw that option , thanks for pointing it out it is there, although i prefer to keep my comments open, but you are right it can help in avoiding the spam.

  • I have no idea why I was not able to post any comments here for a long time. Your spam filter plug-in was giving me an error saying that I was poor in maths addition…lol…
    Anyways thanks for this plug-in as I am getting increased amounts of Spam everyday.

    I hope this comments gets though your Spam filter..

  • Hi buddy,
    I apologize for the issues you faced because of the math protection. I have deactivated that plugin on Internet Techies now. You are welcome to post comments on this blog as you will not have to solve any math calculations. lol

  • Initially it is okay to have open comments after sometime, you will not get so much time for moderation and specially for spams. Then you may use this option to reduce the extra burden. Thanks for posting your comments.

  • Hi,
    I leave all my comments open. I often post updates on old posts so some articles are never really closed.I think Commenting is a fantastic way to meet new people and make connections.