Disable Comments and Block WordPress Spam with Plugins or Manually

cybersecurity-concept-collage-design

WordPress comments can be a great way to engage with your audience—but they can also open the door to spam, bots, and unnecessary moderation. Whether you’re running a business site, portfolio, or a blog without community input, disabling comments or hardening them against spam is a smart move. In this guide, we’ll cover how to disable WordPress comments completely, and how to protect your comment section from spam using both plugin-based and manual methods.

 

🔧 Option 1: Disable Comments Using a Plugin (Quick & Easy)

If you prefer a hassle-free solution, there are several plugins that let you disable comments globally or selectively.

✅ Recommended Plugin: Disable Comments

  • Install & Activate: Go to Plugins > Add New, search for “Disable Comments”, install and activate.
  • Configure Settings: Navigate to Settings > Disable Comments.
  • Choose to:
    • Disable everywhere
    • Disable only on specific post types (e.g., posts, pages, media)
  • Save changes.

🔒 Bonus: The plugin also removes the comment fields from RSS feeds and the admin area, ensuring a clean result.

 

🛠 Option 2: Disable Comments Manually in WordPress

Prefer to avoid plugins? You can disable comments using built-in WordPress settings.

  1. Disable Future Comments
  • Go to Settings > Discussion.
  • Uncheck “Allow people to submit comments on new posts.”
  • Save changes.
  1. Disable Existing Comments

For existing posts or pages:

  • Go to Posts > All Posts.
  • Select all posts, then click Bulk Actions > Edit > Apply.
  • Set Comments = Do not allow, then Update.

📌 Repeat the same steps under Pages > All Pages if needed.

  1. Remove the Comment Field in Theme (Optional)

Edit your theme files if the comment box still appears:

  • Open comments.php or single.php in your child theme.
  • Comment out or delete the line:
  • <? php comments_template(); ?>
  • Save changes and clear cache.

🛡 How to Protect WordPress Comments from Spam (If You Keep Comments Enabled)

If you want to keep comments open but block spam, use these proven methods:

🔌 1. Use Anti-Spam Plugins

  • Akismet Anti-Spam (pre-installed on most WP sites)
    • Activate and connect it to your WordPress.com account.
  • Antispam Bee
    • Lightweight and GDPR-compliant alternative to Akismet.
  • WP Armour
    • Uses honeypot technique to block bots silently.

⚙️ 2. Enable Comment Moderation

  • Go to Settings > Discussion.
  • Check the box: “Comment must be manually approved”
  • Set rules under Comment Moderation and Disallowed Comment Keys

🔑 3. Block IPs or Use CAPTCHA

  • Use plugins like reCAPTCHA by WPForms to require human verification.
  • Block suspicious IPs using .htaccess or a security plugin like Wordfence.

📉 4. Limit Comment Links

  • In Settings > Discussion, limit the number of links per comment to 1 or 0.

This discourages spammy backlinking.

 

Final Thoughts

Whether you want to disable comments entirely or simply protect your site from spam, WordPress gives you flexible options. Use a plugin for a fast fix or take the manual route for tighter control. If you’re still allowing comments, make sure you have spam protection in place—your website’s reputation depends on it.

wpChatIcon
wpChatIcon