How to Stop WordPress Spam Comments (Without Killing Real Ones)

WordPress spam comments filtered by a shield

Spam comments are not a mystery. Most of them are bots leaving a short, flattering sentence and a link back to a casino, a pharmacy, or a site selling links. The comment itself is worthless. The link is the whole point: every live link from your site is a small vote for theirs.

So stopping spam comments is about removing the reward, layer by layer, until posting spam on your site costs more than it earns. The first two layers are free and already built into WordPress, and you do not need a single line of code for either of them.

1. Tighten the free settings first (Settings → Discussion)

Everything here is on one screen: Settings → Discussion. These are the settings that matter, and what to set them to.

Setting (exact label)What to doWhy
Comment author must have a previously approved commentTurn it onFirst-time commenters wait for approval; approved commenters post straight away. Stops most drive-by spam.
Comment must be manually approvedOnly if you can keep upEvery comment waits for approval. Safest, but the queue becomes a chore on a busy site.
Comment author must fill out name and emailLeave it on (it is on by default)It stops the laziest bots. WordPress does not check whether the name or address is real, so this is a small hurdle, not a wall.
Users must be registered and logged in to commentOnly for membership or community sitesStrong, but ends open discussion — not for a normal blog.
Automatically close comments on old postsTurn it on, with 30 or 60 daysMost spam targets old posts nobody watches; genuine replies to a two-year-old guide are rare.
Allow link notifications from other blogs (pingbacks and trackbacks)Turn it offAbused constantly; almost never a real conversation any more.
Hold a comment if it contains more links than… (Comment Moderation)Set it to 1 or 2That many links or more waits for approval. Use 1 if real commenters rarely share links, 2 if they often do.

Two boxes at the bottom of the same screen do different jobs. Comment Moderation keys hold a matching comment in the queue for you to look at. Disallowed Comment Keys send a matching comment straight to the trash. Both match inside words, so start with a few obvious spam words and add only from spam you actually receive. And check the pending queue regularly — a held comment is not a deleted one, and a real reader’s first comment should not sit invisible forever.

2. Close comments where they do not belong

The Discussion screen has one trap. Unchecking Allow people to submit comments on new posts only applies to posts you publish from now on — your existing posts keep whatever they had. The screen says so, in small print: “Changes here will only be applied to new posts.”

So if you want comments off on posts that already exist, do it as a second step. Go to Posts → All Posts, tick the posts you want to close (or tick select-all), open Bulk actions, choose Edit, click Apply, set Comments to Do not allow, and click Update. Do the same on Pages → All Pages if your pages accept comments too.

If your site does not need comments at all, turning them off everywhere ends comment spam completely — just be honest first about whether real readers comment.

3. Add one content filter — and check the licence

The built-in settings follow rules you write. A spam filter judges each comment against a shared database of known spam and catches what your rules miss. You need one — not two, which mostly argue with each other and double your false positives.

The two free options worth knowing are Akismet and Antispam Bee, and the choice between them is mostly about licensing.

Akismet is the default. It ships with every WordPress install, it is made by Automattic, and it checks each comment against a shared spam database. The Personal plan is name-your-price, which sounds free — but it is only for personal, non-commercial sites. Akismet’s own guidance says a free key does not cover sites that run ad code (including AdSense), sell products or services, promote a business, run affiliate links, or accept donations. A commercial site needs a paid plan, starting at about $9.95 a month billed yearly for one site.

Antispam Bee is the free alternative with no such catch. It is free forever, for personal and commercial sites alike, with no account and no API key — it judges comments on your own server instead of sending them to a third party. The trade-off is scope: it protects comments and trackbacks only, not contact forms or registrations.

Simple rule: a personal blog with no ads can use either; a site that earns money should use Antispam Bee, or pay for Akismet. Whichever you pick, turn on its strictest handling — in Akismet that is “Silently discard the worst and most pervasive spam” — so the worst spam never reaches your queue at all.

4. Put a bot gate on the form

Filters judge comments after they are submitted. A bot gate stops the automated submissions before WordPress ever sees them. The two common kinds are a honeypot (a hidden field humans never fill in and bots do) and a challenge such as Cloudflare Turnstile or reCAPTCHA, which asks the visitor to prove they are human.

A honeypot is invisible to real visitors — nobody has to solve anything. A challenge is stronger against determined bots, but it is a small toll on every real commenter, so use it only if the honeypot and filter together are not enough. Add only one gate: stacking a CAPTCHA on top of a honeypot on top of a filter stops more real people, not more spam.

5. Clear out the spam that is already there

Closing comments and adding a filter stop new spam. They do nothing about the spam already sitting in your database, and a big spam pile still slows the dashboard and still sends you notification emails.

Go to Comments and open the Spam tab, check it once for a real comment caught by mistake, then click Empty Spam. Then open the Pending tab, approve the real comments, and delete the rest. Repeat weekly until the pile stops growing, then monthly.

And one distinction that saves a lot of confusion: if your site itself sends visitors to spam — your pages redirect to casino or pharmacy sites — that is not comment spam. That is a hacked site, and no comment setting will fix it. Our guide to a WordPress site redirecting to spam walks through how to tell, and our hacked-signs guide covers what to check next.

What this looks like when it works

You do not need all five layers on day one. Start with the two free ones — the Discussion settings, plus closing comments on old posts — and give them a week. Most small sites find that is enough. If spam is still getting through, add one filter from section 3. If it is still getting through after that, add one bot gate from section 4.

Check the result the same way each time: the Spam tab should shrink, the Pending tab should hold mostly real comments, and no real commenter should have to fight your form to be heard. When all three are true, stop adding layers. Spam protection is finished when the spam is gone and the conversation is still alive.

Related guides: WordPress Hardening Checklist: 25 Checks; WordPress File Permissions Explained (644, 755); DIY WordPress Security Audit Checklist (2026); WordPress Auto-Updates: Should You Turn Them On?

Will turning on manual approval hurt my site?

No, but it adds work. Every comment waits until you approve it, so a real comment can sit unseen for days if you forget the queue. The “previously approved comment” setting is the better default: first-timers wait, regulars post straight away.

Why am I still getting spam after turning comments off?

Because the off switch only covers new posts. Comments already open on old posts stay open until you close them with bulk edit. Spam already in the queue also stays until you empty it.

Is Akismet really free?

Only for personal, non-commercial sites. If your site runs ads, sells anything, promotes a business, or uses affiliate links, the free key is not licensed for you and a paid plan starts at about $9.95 a month billed yearly. Antispam Bee is free for commercial sites too.

Should I just disable comments everywhere?

If your site gets no real comments, yes — it ends comment spam completely. If real readers do comment, keep comments open on new posts and let them close automatically on old ones instead.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *