How to Block Spam Comments in WordPress
Cut comment spam with filters, smart moderation, and careful site-wide controls.
Understanding spam comments
Spam comments are unwanted posts that push scams, ads, or links. Some are blunt sales pitches. Others copy real discussion to sneak links past site owners.
The volume can be striking. Akismet reports blocking hundreds of billions of spam submissions across its service. That number shows why manual review alone often fails. Your own rate will depend on traffic, topic, and comment settings.
Start with a simple check. Review your spam folder for one week. Note the daily count, repeated phrases, and links. This gives you a baseline for testing each new filter.
Spam changes over time. A burst of new junk may follow a popular post or a link shared elsewhere. Watch for patterns before you add broad rules.

Why comment spam harms a site
Spam wastes time and makes a site look neglected. Readers may mistake a fake link for a trusted tip. Some links lead to scams or unsafe downloads.
A page crowded with junk is harder to use. Spam does not guarantee a search penalty. Still, unchecked comments can bury useful replies and weaken trust.
Do not trash every unusual comment. A first-time reader may share a valid link or use an unfamiliar name. Check uncertain posts before taking action.
Good comment rules protect both readers and site owners. The goal is not to block every new voice. It is to reduce junk while keeping real discussion open.
How to block spam comments in WordPress
Start with WordPress settings, then add a spam filter if needed. This is a reliable way to block spam comments on WordPress without shutting off discussion. Change one setting at a time so you can spot false blocks.
In your dashboard, open Settings, then Discussion. Require approval for a reader’s first comment. Later comments from approved readers can post without review. You can also hold comments that contain several links.
Set a comment age limit for older posts that no longer need replies. This can cut spam aimed at neglected pages. Keep comments open on posts where readers still ask useful questions.
For broader comment moderation, add distinct phrases or links to the moderation list. Avoid common words that may appear in normal replies. WordPress documents these controls in its Discussion settings documentation.
These steps help prevent spam comments on WordPress without adding extra tools. Check the pending and spam folders during the first week. Restore any valid reply that a rule held by mistake.

Use plugins to block spam
Akismet checks comments against a shared spam service. In your dashboard, open Plugins and choose Add New. Search for Akismet Anti-Spam, install it, and activate it.
Follow the setup steps to connect an account. Review the settings and choose how flagged posts should be handled. Check the spam folder often at first, since filters can misread valid comments.
Akismet is a common option for people asking how to stop spam comments on WordPress. Its service reports a very large volume of blocked spam. See Akismet’s service overview for its own figures and product details.
Forget Spam Comment is another plugin name you may encounter. Search for it under Add New, then check its update date, author, and support notes. If it is not listed or looks stale, choose a maintained alternative.
For a CAPTCHA check, pick a maintained plugin that supports Google reCAPTCHA. Create site keys through Google, enter them in the plugin settings, and turn the check on for comment forms. Test the form while signed out.
CAPTCHA can slow bots, but it can also annoy readers. Add it only when other filters miss too much spam. A quick test can confirm that the form still works on phones and computers.
Use one main filter first. Add another tool only when your spam folder shows a clear gap. Too many filters can make it hard to find the cause of a blocked comment.

Manual moderation and comment rules
Open Settings, then Discussion, to set comment rules. Require a name and email, hold comments with links, and make first-time posts wait for approval. These steps can help stop spam comments on a WordPress blog while keeping trusted readers active.
Use the moderation list for repeated phrases, domains, or link patterns. Keep each rule narrow. A broad rule can hide genuine comments that use common words.
Open Comments in the dashboard to review posts. Approve useful replies, mark junk as spam, and send abuse to trash. Scan selected posts before applying a bulk action.
To delete all spam comments in WordPress, open the Spam tab under Comments. Review the list first, then choose the option to empty spam. This removes those items, so check for valid replies before confirming.
Write a short comment policy that names the behavior you will remove. For example, you might bar sales pitches, copied replies, and unsafe links. Clear rules help readers understand why a post was held or deleted.

Block IP addresses and countries
WordPress does not include a site-wide IP firewall. To block an IP address from your website in WordPress, add it to the Disallowed Comment Keys box under Settings, then Discussion. Comments from that address will be blocked.
This setting blocks comments, not every kind of visit. Use it for a repeat offender rather than one failed post. Shared networks and changing IPs can affect innocent visitors.
If abuse continues, use a trusted security plugin or your web host’s firewall. These tools can block traffic before it reaches WordPress. Keep a note of each rule so you can remove it if it causes trouble.
To block countries from your website in WordPress, use a firewall or security service with country rules. These tools can filter visits by region before they reach your site. Check that the rule will not block customers or search crawlers you need.
People asking how to block someone on WordPress should choose the narrowest control that fits. Use comment rules for comment abuse. Use a firewall only when the problem affects more than comments.
These controls can also help with spam registrations on WordPress. If junk accounts appear, turn off open registration when you do not need it. If sign-ups are needed, add an approval step or a trusted anti-spam check to the registration form.
Best practices for comment management
Keep comments open only where they add value. Set a short review routine, and clear spam in batches. This makes it easier to see a sudden rise in junk.
Use one main spam filter, then add a second tool only when you find a gap. Review false positives before you tighten rules. A few minutes of checking can prevent lost reader replies.
Keep plugins and WordPress up to date. Remove tools you no longer use, and test comment forms after major changes. These habits support site security and keep moderation tools working as expected.
Track the spam count each week after a change. If the number falls without hiding real discussion, keep the setting. If valid comments disappear, narrow the rule or turn it off.
The best way to stop WordPress spam is usually a mix of filters and clear rules. Make it easy for real readers to join in. Keep a human review step for anything uncertain.
Step-by-step
- 01 Set WordPress comment rules
Open Settings, then Discussion. Require approval for first-time comments and hold posts with several links.
- 02 Add a maintained spam filter
Install a trusted comment filter and connect it as directed. Check its spam folder for false positives during the first week.
- 03 Review and refine
Track spam patterns and add narrow moderation rules. Remove any rule that blocks valid comments.
- 04 Block repeat offenders if needed
Add a repeat spammer’s address to the disallowed comment list. Use a firewall only when comment rules are not enough.
Frequently asked questions
- How do I block spam comments in WordPress?
- Require approval for first-time commenters and hold posts with links. Add a maintained spam filter if junk still gets through.
- How can I stop spam comments on my WordPress blog?
- Use comment moderation, close replies on old posts that no longer need them, and check your spam folder for patterns. Add CAPTCHA only if other tools miss too much spam.
- How do I block an IP address from my WordPress website?
- Add the address to the Disallowed Comment Keys box under Settings, then Discussion. This blocks comments from that address, but not all site visits.
- How do I delete all spam comments in WordPress?
- Open Comments, select the Spam tab, and review the list. Then use the option to empty spam.
- Can I block comments from certain countries in WordPress?
- Yes. Use a firewall or security service that supports country rules. Check that it will not block visitors or search crawlers you want to reach.
Related reading
How Do I Edit the Homepage in WordPress? (Step by Step)
Find your homepage, make changes, and preview them before they go live.
How to Move a WordPress Site to a New Domain
Move your WordPress site safely with backups, redirects, tests, and Google updates.
How to Add a Blog Page to WordPress
Create a separate home for your posts and help readers find them.