How to stop WordPress comment spam: settings and plugins
To stop WordPress comment spam, start with the settings WordPress already has: hold comments for moderation, hold any comment with links, add a list of disallowed words, and close comments on older posts. Then add one anti-spam plugin to filter what gets through, and turn comments off completely on any post (or the whole site) where you do not need them.
Most blogs need nothing more. This guide covers each layer in order: the settings, the plugins, and cleaning up a spam queue that has already filled up.
Why does a new WordPress blog get so much comment spam?
Because comment forms are open by default and easy to find. A fresh WordPress install allows comments on new posts out of the box, and every comment form posts to the same file on every WordPress site. Bots do not need to find your blog specifically; they post wherever the door is open.
The goal of most comment spam is a link. The spammer wants a link back to their site, or wants a reader to click through to a scam. Google lists “comment spam on blogs” as a form of user-generated spam in its spam policies, and it is your job as the site owner to keep it off your pages. Spam that gets published makes your posts look abandoned, can send readers to harmful sites, and tells search engines that nobody is looking after the place.
The good news: spam is noisy and repetitive, so it is not hard to filter. You just need layers, because no single setting catches everything.
How do you stop comment spam in WordPress without a plugin?
Go to Settings > Discussion in your dashboard. Everything in this section lives on that one screen, and the wordpress.org Discussion Settings documentation explains each option. The exact labels can vary slightly between WordPress versions, but the options are the same.
If you followed our WordPress blog setup guide, you have already turned off pingbacks and set comments to manual approval. This section goes further and explains the spam-specific options in detail.
Should every comment be manually approved?
On a new blog, yes. Under Before a comment appears, tick the option that says comments must be manually approved. Nothing then appears on your site until you have read it and clicked Approve.
This is the single most effective setting. Google’s own guide to preventing user-generated spam calls manual moderation “a very effective way of fighting spam” and notes that this is why comment moderation is built into most content management systems. The cost is time: you have to check the queue. On a small blog that is a few minutes a week.
Below it is Comment author must have a previously approved comment. This is on by default in WordPress. It lets returning commenters (matched by email address) skip the queue once you have approved them before. If you later decide to relax full manual approval, keep this one on so that only people you already trust get published instantly.
How many links should a comment be allowed to have?
Under Comment Moderation there is a setting: “Hold a comment in the queue if it contains [X] or more links”. The WordPress default is 2.
Real comments rarely need links. Spam almost always has at least one. The wordpress.org docs point out that spammers learned to use only one or two links to slip past high limits, so set this to 1. Any comment with a link in its body then waits for you, while plain-text comments follow your other rules.
This only counts links inside the comment text. The commenter’s “Website” field is separate and does not count toward the limit.
What words should go in the comment moderation list?
The large box under Comment Moderation holds words, phrases, email addresses or IP addresses, one per line. If any of them appears in a comment’s content, author name, website, email, IP address or browser user agent, the comment is held for moderation.
A good starting list for most blogs covers the topics spam keeps pushing:
- Common spam subjects: loans, casino, betting, crypto investment schemes, essay writing services, replica goods, pharmacy terms.
- Link shortener domains, since real commenters rarely hide where a link goes.
- Phrases you see again and again in your own spam folder.
Be careful with short words. WordPress matches inside words, so the docs warn that “press” would match “WordPress”. A short entry like “sex” would also catch “Sussex” and “sextant”. Use longer, specific phrases where you can.
Under the box is a link to check past comments against the list, which the wordpress.org comment moderation documentation recommends using to test a new entry before you rely on it.
What is the Disallowed Comment Keys box for?
The next box, Disallowed Comment Keys (called “Comment Blacklist” in older versions of WordPress), works the same way, except a matching comment skips the queue entirely. The wordpress.org docs describe it as deleted without notification. In current WordPress code, the comment is sent to Trash, which WordPress empties permanently after 30 days by default.
Either way, you will not be told. Use this box only for words that no real reader would ever type on your blog, and for IP addresses or email addresses that have spammed you repeatedly. If you are not sure, put the word in the moderation box instead. A held comment costs you a click. A wrongly trashed comment from a real reader is gone without you ever seeing it.
Should you close comments on older posts?
Under Other comment settings, tick “Automatically close comments on posts older than [X] days”. It is off by default, and the suggested number is 14.
Old posts attract a large share of spam because bots find them through search results and links, while real readers mostly comment when a post is new. Closing comments after a set period removes the comment form from older posts but keeps every approved comment visible.
Pick a number that fits how your posts get read. A news-style blog could use 30 days. An evergreen how-to blog, where people find a post through search years later and ask useful questions, might use 180 or 365 days, or skip this setting and rely on moderation instead.
Which other Discussion settings help?
- Comment author must fill out name and email. On by default. The docs are honest that this is not verified, but it makes bots do slightly more work. Leave it on.
- Users must be registered and logged in to comment. This blocks almost all anonymous spam, but it also blocks most real readers, who will not create an account to leave one comment. Use it only for a members-only site.
- Allow link notifications from other blogs (pingbacks and trackbacks). Turn it off. On a new blog these notifications are mostly spam. Turning the box off affects new posts, so use Bulk Edit (covered below) to set “Pings” to “Do not allow” on posts you have already published.
- Email me whenever a comment is held for moderation. Turn it on while your blog is small, so you approve real comments quickly. Real commenters lose interest if their comment sits unapproved for a week. Turn it off once the volume gets annoying.
Which anti-spam plugins work for WordPress comments?
Settings stop a lot, but a busy blog still gets a stream of spam into the moderation queue. An anti-spam plugin filters that stream automatically, so the queue only holds comments that might be real. Install one filtering plugin. Running two filters side by side mostly creates conflicts and false positives.
These are the main options in the wordpress.org plugin directory. The figures come from the wordpress.org plugins API. “Active installs” is the rounded number wordpress.org shows, such as “5,000,000+”.
| Plugin | How it works | Active installs |
|---|---|---|
| Akismet Anti-spam | Checks each comment against a central spam database run by Akismet. Needs an API key. | 5,000,000+ |
| Antispam Bee | Local checks (time to submit, approved commenters, language, country, local spam database). No third-party service. | 700,000+ |
| WP Armour (Honeypot Anti Spam) | Adds a hidden field that only bots fill in. No external calls. | 400,000+ |
| Simple CAPTCHA with Cloudflare Turnstile | Adds a Cloudflare Turnstile challenge to the comment form. | 200,000+ |
| Anti-Spam by CleanTalk | Cloud-based spam checks run by CleanTalk. | 200,000+ |
Check each listing’s “tested up to” version against your WordPress version before you install. If you have not installed a plugin before, our guide to installing WordPress plugins shows three ways to do it.
Akismet: the most widely used filter
Akismet is published by Automattic and sends each new comment to Akismet’s service, which compares it with spam seen across many other sites. Its plugin page says comments it catches appear in your Comments screen, each comment gets a status history showing what Akismet did, and hidden or misleading links are revealed in the comment body.
You need an API key from Akismet after activating. According to the plugin listing, keys are free for personal blogs, and paid subscriptions are available for businesses and commercial sites. Check which category your blog falls into before you sign up.
Because Akismet sends commenter data to an outside service, mention it in your privacy policy.
Antispam Bee: no outside service
Antispam Bee runs its checks on your own server. Its listing says it blocks spam without captchas and without sending personal information to third-party services, and that it is free and ad-free. Options include trusting already-approved commenters, considering how fast a comment was submitted, allowing comments only in certain languages, and deleting stored spam after a set number of days.
This is a good fit if you would rather not send reader data to another company, or if your blog does not qualify for a free Akismet key.
Honeypot and challenge plugins
A honeypot adds a form field that real visitors never see. Bots fill in every field, so a filled honeypot gives them away. WP Armour does this for WordPress comments and many form plugins, and its listing says the free version makes no external server calls.
A challenge plugin adds a check that a human is submitting the form. Cloudflare Turnstile is Cloudflare’s alternative to a traditional CAPTCHA, and the Simple CAPTCHA with Cloudflare Turnstile plugin adds it to the WordPress comment form (and login, registration and many form plugins). You create the site key and secret key in a Cloudflare account. Cloudflare’s documentation says Turnstile can be embedded into any website without sending traffic through Cloudflare, so your blog does not need to use Cloudflare otherwise.
Which one should you choose?
- Personal blog, want the least setup: Akismet, with a free personal key.
- Commercial blog, or you want reader data to stay on your server: Antispam Bee.
- Bots still get through a filter: add a honeypot or Turnstile on top. These block bots at the form, while Akismet and Antispam Bee judge what was submitted, so one of each works well together.
For the other plugins most blogs need, see our list of essential WordPress plugins.
How do you turn off comments in WordPress?
If your blog does not need comments, turning them off is the most complete spam fix there is. Many blogs get their reader conversations on social media or by email instead. There are three levels.
How do you turn off comments on future posts?
In Settings > Discussion, untick “Allow people to submit comments on new posts” and save. This changes the default for posts you create from now on. It does not change posts you have already published.
How do you turn off comments on one post?
Open the post in the editor. In the sidebar, find the Discussion panel and set comments to Closed, then save or update the post. The wordpress.org docs describe the same steps. Existing approved comments stay visible; nobody can add new ones.
How do you turn off comments on all existing posts?
- Go to Posts > All Posts.
- Tick the checkbox at the top of the list to select every post on the page. Use Screen Options (top right) to show more posts per page if you have many.
- Choose Edit from the Bulk actions menu and click Apply.
- Set Comments to Do not allow. Set Pings to Do not allow too.
- Click Update.
Repeat for Pages if your pages have comments open.
When do you need the Disable Comments plugin?
The built-in steps close the comment forms, but parts of the comment system remain: the Comments menu, comment feeds and the ways bots can post comments directly without your form. If you never want comments at all, the Disable Comments plugin (1,000,000+ active installs) switches them off across the site. Its listing says it hides comment links from the admin menu and dashboard, disables comment feeds, removes the X-Pingback header and disables comments through XML-RPC and the REST API. It can apply to chosen post types only, for example keeping comments on posts but not pages.
How do you clean up comment spam that is already there?
If your blog had comments open with no protection, you might have hundreds of comments waiting. Do this once, then let your new settings keep it clean.
- Turn your protection on first. Set up moderation and a plugin before cleaning, or the queue fills again while you work.
- Take a backup. Deleting comments in bulk cannot be undone after Trash is emptied. Our guide to WordPress backups covers how.
- Open Comments > Pending. WordPress sorts comments into four views: Pending, Approved, Spam and Trash.
- Look for real comments first. Scan the list and approve anything genuine. Real readers deserve an answer even if it is late.
- Bulk-mark the rest as spam. Select them, choose Mark as spam from Bulk actions and apply. Marking as spam, rather than deleting straight away, moves them out of Pending into the Spam view, where you can give them one last look.
- Empty the Spam folder. Open the Spam view and use Empty Spam.
- Check Approved for old spam. Older spam may have been published before you turned moderation on. Search the Approved list for words from your moderation list and for links.
If an anti-spam plugin marks a real comment as spam, open the Spam view, hover over it and click Not Spam. Check the Spam view now and then for exactly this reason.
What should a weekly comment routine look like?
Once the layers are in place, comment upkeep takes a few minutes. A simple routine:
- Open Comments > Pending two or three times a week. Approve and reply to real comments.
- Glance at the Spam view for false positives once a week, then empty it.
- When the same spam phrase keeps reaching your queue, add it to the moderation list.
- Keep WordPress and your anti-spam plugin updated.
Replying matters. Comments are where the readers who care most about your blog talk to you, and a reply turns a passing visitor into a regular one. If you comment on other people’s blogs too, our guide to blog commenting for SEO explains what that does (and does not) do for your own site.
What mistakes make comment spam worse?
- Approving vague praise. “Great post, very informative!” with a link to an unrelated business is spam, even when it reads politely. It is often a test: once one comment is approved, the “previously approved commenter” rule lets the next one through.
- Using the Disallowed box too freely. Comments that match it never reach you. Start with the moderation box.
- Running two filtering plugins. Pick one filter, plus a honeypot or challenge if needed.
- Letting the queue sit for weeks. Real readers give up, and a full queue hides the few real comments.
- Leaving pingbacks on. Most pingbacks on a small blog are spam.
- Forgetting old posts. Changing the default in Discussion settings does not close comments on posts you have already published. Use Bulk Edit.
WordPress also helps by default: it adds rel="nofollow ugc" to links inside comments, which tells search engines not to treat them as your endorsement. Our guide to dofollow and nofollow links explains what those values mean. It does not stop spammers from trying, which is why moderation still matters.
Frequently asked questions
Does WordPress have built-in spam protection for comments?
Yes. Under Settings > Discussion you can require manual approval, hold comments with links, hold or block comments containing listed words, IPs or emails, and close comments on older posts. It does not filter spam automatically, so most blogs add one anti-spam plugin as well.
Is Akismet free?
According to its wordpress.org listing, Akismet keys are free for personal blogs, and paid subscriptions are available for businesses and commercial sites. The plugin itself is free to install.
Should I turn off comments on my blog?
Turn them off if you do not plan to read and reply to them. Comments you never answer add little value and attract spam. If readers do leave useful questions, keep them on with moderation and a spam filter.
Why do spam comments still get through after installing a plugin?
No filter is perfect. Keep manual approval on for new commenters, set the link limit to 1, mark missed spam as Spam rather than deleting it, and add a honeypot or Cloudflare Turnstile if bots keep getting through.
Will closing comments delete existing comments?
No. Closing comments, on one post or in bulk, removes the comment form. Approved comments stay visible on the post.
