Your Dedicated Partner for All Things WordPress

How to Block Comments on WordPress Sites

Table of Contents

One of the best ways to engage with your website’s visitors is by allowing them to leave comments. But what if you don’t want comments? Or you’re being inundated with spam? Fortunately, there are several easy ways to block comments on WordPress sites. Let’s take a look at how it’s done.

Disabling Comments Globally

If you don’t want any comments appearing on any posts or pages in your WordPress site, then disabling comments globally is the best option. This can be done by going into the Settings > Discussion page in your admin dashboard and unchecking the “Allow people to post comments on new articles” box. That will disable all commenting for your entire site. You can also choose to have WordPress automatically close comments after a certain number of days, which is an effective way to keep conversations fresh without having to manually close them yourself.

Blocking Comments for Specific Posts or Pages

If you only want to disable commenting for specific posts or pages, then you can do that as well. Simply go into the post or page editor and click on the Discussion tab under the Publish section. Uncheck the box next to “Allow Comments” and click Update/Publish when you’re done. This will prevent anyone from leaving a comment on that specific post or page.

Manually Blocking Comments by IP Address

Another way of blocking unwanted comments is by IP address. If someone is spamming your site with inappropriate content, then this is an easy way to prevent them from doing it again in the future. To block someone’s IP address, go into Settings > Discussion and scroll down until you see “Comment Blacklist.” From there, type in the IP address of whoever you want blocked and WordPress will automatically deny their comment(s).


WordPress makes it easy to block unwanted comments from appearing on your website. Whether you want comment blocking for all posts/pages or just individual ones, there are several options available that make it quick and easy—no coding required! So if you’re looking for an effective way protect your website from spammers and other unsavory characters, give these methods a try today

How to get started?

Learn more

WordPress Maintenance

Save 33% with our Annual pricing plan.

Get Started

Looking for help? Chat with us.

Are you in need of assistance or guidance? Look no further! Our dedicated team is here and ready to help. Chat with us today and let’s work together to find the perfect solution for your needs.

Our support team will get you:

I believe every website owner deserves a reliable professional support always by their side.

Alexey Seryapin
Founder of WPServices

Having Troubles With WordPress?

Claim Your Free WordPress Maintenance

In today’s fast-paced digital landscape, every website deserves the care and expertise of a professional maintenance team, ensuring optimal performance, enhanced security, and seamless user experiences, so you can focus on growing your business with peace of mind.

Alexey Seryapin
Founder of WPServices

Coupon Code Applied!

Take your time and continue browsing our services.

Alexey Seryapin
Founder of WPServices