How to Stop Spam Comments in WordPress (2026 Guide)

Stop spam comments in WordPress — laptop showing a blog comments section

Open your WordPress dashboard one morning to find 200 new comments overnight — every one a link to a casino, a crypto scheme, or a “guest post” offer. If that sounds familiar, you need a plan to stop spam comments in WordPress before they bury the real conversation on your site.

Comment spam is automated and relentless. Unchecked, it clutters your moderation queue, pollutes your database, and hands your search rankings to link spammers. The good news: you don’t need to be a security expert — WordPress ships with solid built-in controls, and one or two free tools close the rest of the gap.

This guide walks through six methods, from the free settings in your dashboard to the plugins and bot checks that finish the job.

Method 1: Tighten WordPress’s Built-In Discussion Settings

Before you install anything, open Settings > Discussion. Everything here is part of WordPress core, costs nothing, and on a low-traffic blog is often enough.

Require manual approval for every comment

Under Before a comment appears, tick An administrator must always approve the comment. Nothing goes live until you approve it — the single most effective anti-spam setting WordPress offers.

The gentler option is Comment author must have a previously approved comment: the first comment from any email address waits for approval, and later ones publish straight away.

Hold comments that contain links

Under Comment Moderation, set the link limit to 1. Spammers almost always include a link — that’s the point of the comment — while genuine commenters rarely link to anything.

Blocklist spammy words with Disallowed Comment Keys

The Disallowed Comment Keys box is your own blocklist: one word or phrase per line — common spam terms, casino and crypto brand names, or URLs spammers keep pushing. Any comment containing a listed word goes straight to the spam folder.

One warning: words match inside other words, so “bet” also catches “better” — use distinctive phrases, and keep borderline words in the Comment Moderation list instead.

Auto-close comments on old posts

Spam piles up on old posts because bots crawl your archive and nobody watches those pages. Tick Automatically close comments on articles older than X days and set it to 90 or 180 days.

Method 2: Install Akismet to Filter Comments Automatically

Settings are rules you write yourself. Akismet is different: it checks every comment against a shared database of known spam signals before it reaches you. It’s made by Automattic and ships bundled with most WordPress installs — you may already have it sitting inactive under Plugins.

To set it up, go to Plugins > Add New, search for Akismet, and install and activate it. You’ll be asked for an API key — create one on Akismet’s site, which needs a WordPress.com account. On WordPress 7.0 and later, the setup lives under Settings > Connectors; on older versions, look for Settings > Akismet Anti-spam. Then choose whether filtered comments go to your Spam folder or are discarded outright — start with the Spam folder so you can check for false positives. For a fuller walkthrough, see this Akismet guide from Hostinger.

One licensing detail: the free Personal key is pay-what-you-can (you can set it to $0), but only for personal, non-commercial sites. If your site runs ads, affiliate links, a shop, or promotes a business, you need a paid plan — Pro starts at around $9.95 per month billed annually. If that doesn’t fit, Method 3 is the free alternative with no commercial restriction.

With over 5 million active installations, Akismet is the default WordPress spam comments plugin for a reason: install it, connect a key, and the bulk of comment spam stops arriving in your queue.

Method 3: Try Antispam Bee as a Free Alternative

If you don’t want comments sent to a third party, or your site is commercial and you don’t want to pay for Akismet, Antispam Bee is the best free option. It runs entirely on your own server and is free for commercial projects too.

Instead of checking a cloud database, it uses honeypot fields and pattern matching to spot bots locally, and it also handles trackbacks and pingbacks. Install it from Plugins > Add New — the defaults are sensible, but set it to delete spam after a number of days so your database doesn’t fill up.

One limitation: Antispam Bee only protects comments and trackbacks — not contact forms or user registrations.

Method 4: Add a Bot Check with Cloudflare Turnstile

Filters catch spam after it’s submitted; a bot check stops the submission entirely. For years that meant Google reCAPTCHA — it still works, and I covered it in my reCAPTCHA guide — but Cloudflare Turnstile is now the cleaner default: free, privacy-friendly, and usually invisible to real visitors.

Turnstile works through your comment form plugin or a dedicated plugin. If you already use Cloudflare — see my Cloudflare setup guide for WordPress — add Turnstile from your Cloudflare dashboard, create a widget, and paste the site and secret keys into your form plugin’s settings. Turnstile and Akismet pair well: one blocks bots at the door, the other catches anything that gets past it.

Method 5: Disable Comments Where You Don’t Need Them

Sometimes the right answer is not better filtering — it’s no comment form at all. Many business and portfolio pages have comments enabled by default and never receive a single genuine one. Every open form is a target.

For one post, open the editor, find the Discussion panel, and untick Allow comments. In bulk, go to Posts > All Posts, select the posts, choose Edit from Bulk Actions, set Comments to Do not allow, and click Update.

Site-wide, go to Settings > Discussion and untick Allow people to submit comments on new posts — that only affects new posts, so combine it with the bulk edit above. To remove comments entirely, the free Disable Comments plugin does it in one click.

Method 6: Turn Off Pingbacks and Trackbacks

Pingbacks and trackbacks are notifications WordPress sends when another site links to your post. Spammers abuse them to plant links on your site without touching your comment form — a “trackback” from a spam site shows up in your comments just like a real one.

On the Discussion screen, untick Allow link notifications from other blogs (pingbacks and trackbacks) on new posts. Most sites lose nothing: genuine sites linking to you don’t need a pingback to send traffic. If trackbacks matter to your community, keep them — but make sure Akismet or Antispam Bee filters them.

Clean Up the Spam That’s Already There

Once the defences are up, clear the backlog: in Comments, open the Spam view, select all, and choose Delete Permanently. WordPress deletes Spam-folder comments automatically after 15 days, but a manual clear frees the space now.

Before deleting, skim the Spam folder for false positives and mark any real comments Not Spam. Then clear your Pending queue the same way.

A Setup That Works for Most Sites

You don’t need all six methods to stop spam comments in WordPress — for most blogs, this stack is enough:

  1. Discussion settings: approve first-time commenters manually, hold comments with links, auto-close comments after 90 days, and turn off pingbacks.
  2. Akismet or Antispam Bee: Akismet for personal sites, Antispam Bee for commercial sites or if you prefer your data to stay on your server.
  3. Cloudflare Turnstile: add it if spam still gets through, or if your contact form is getting hit too.

That combination catches the automated flood and leaves a queue you can clear in minutes a week. Check the Spam folder weekly for the first month to catch false positives early.

Frequently Asked Questions

Why am I still getting spam with Akismet installed?

Check that the plugin is actually connected — an expired or invalid API key leaves Akismet silently inactive. Also check whether the spam comes through a form Akismet doesn’t cover, like a contact form or a WooCommerce review. For form spam, see my contact form guide and add a bot check to the form itself.

Final Thoughts

To stop spam comments in WordPress for good, treat it as a layering problem. The built-in settings cost nothing and do more than most people realise. Akismet or Antispam Bee adds automatic filtering, Turnstile adds a bot check at the door, and disabling comments where you don’t need them removes targets entirely.

Set it up once, check the Spam folder weekly for a month, then forget it. Your comment section should be a place for readers, not a billboard for bots.

If spam is only one symptom of a site that needs attention — slow loading, security worries, or a setup that’s grown messy — I can help. I offer WordPress security hardening and ongoing maintenance. Get in touch through my contact page and tell me what your site needs — I reply within 24 hours.