If you would rather have this handled for you, our WordPress security service takes care of this end to end. Spam is more than an annoyance. It clutters your comment sections, floods your contact forms, fills your inbox with junk, and can even slow your site down or expose it to security risks. Left unchecked, it makes an otherwise professional website look neglected. Learning how to stop WordPress spam keeps your site clean, fast, and credible.
The good news is that WordPress spam is very manageable with the right approach. This guide covers practical ways to stop spam in comments, forms and user registrations, with the exact settings to change, and how to keep your site clean and trustworthy.
Where WordPress Spam Comes From
Most spam is automated. Bots roam the web looking for comment forms, contact forms, and sign-up fields to fill with junk, links, and scams.
The aim is usually to plant links back to dubious sites, spread scams, or simply overwhelm your systems. Because it is automated, spam can arrive in large volumes without any human effort behind it. OWASP lists spamming among its automated threats to web applications, alongside related abuse such as automated account creation.
Understanding that most spam is generated by bots is the key to stopping it, because bots behave differently from real visitors.
Why Spam Is a Real Problem
It is tempting to dismiss spam as harmless clutter, but it causes genuine problems for your site and your business.
- It buries genuine comments and inquiries in noise
- It can publish harmful or embarrassing links on your site
- It wastes your time sorting real messages from junk
- It can slow your site and bloat your database
- Malicious spam can carry links to scams or malware
A comment section or inbox full of spam does not just waste your time. It makes your whole site look untended and less trustworthy to visitors.
How to Stop WordPress Spam in Comments
Comment sections are a favourite target for spam bots. Several measures, used together, keep them clean.
Requiring approval before comments appear stops spam from ever being published publicly. Anti-spam filtering automatically catches and removes the obvious junk, while techniques that quietly detect bots stop many of them before they submit.
Disabling comments on pages that do not need them, and closing comments on very old posts, also removes easy targets for spammers.
The Discussion Settings to Change
Most of the built-in protection lives under Settings > Discussion, described in the Discussion settings documentation. A sensible starting point for a business site:
- Untick “Allow link notifications from other blogs (pingbacks and trackbacks) on new posts”. Few business sites benefit from them, and they are a common spam channel.
- Tick “Comment author must fill out name and email”.
- Tick “Automatically close comments on articles older than” and choose a period that suits you, such as 30 to 90 days.
- Tick “Comment must be manually approved”, or at least “Comment author must have a previously approved comment”.
- Set “Hold a comment in the queue if it contains” to 1 or 2 links. Real comments rarely need more.
- Use “Disallowed Comment Keys” for words, URLs or IP addresses that only ever appear in spam. Be careful: matching comments go straight to the trash, and short words can match inside longer ones.
If you do not want comments at all, untick “Allow people to submit comments on new posts”, then close comments on existing posts with the Bulk Edit option on the Posts screen. The comment moderation guide explains how the moderation queue works.
Add an Anti-Spam Filter
Settings alone will not catch everything. A filtering service such as Akismet checks each comment against patterns seen across many sites and moves likely spam to the Spam folder. Check the licence terms for the service you choose: some require a paid plan for commercial sites. Whichever you use, mention it in your privacy policy, because comment data is sent to a third party for checking, as our GDPR and cookie compliance guide explains.
How to Protect Your Forms
Contact and sign-up forms are another common spam magnet. Protecting them keeps your inbox clean and your data reliable.
- Add spam protection that distinguishes bots from real people
- Use techniques that catch automated submissions invisibly
- Keep forms simple and only ask for the information you need
- Monitor submissions so you can spot and adjust to new spam patterns
The aim is to block bots without adding friction for genuine visitors, who should be able to reach you easily.
Form Spam Protection Techniques Compared
- Honeypot field: a hidden field that people never see but bots fill in. It costs visitors nothing and stops the simplest bots. Most form plugins offer it as a checkbox.
- Time check: rejects forms submitted faster than a person could type them.
- Invisible challenge: services such as Cloudflare Turnstile or reCAPTCHA v3 score the visitor in the background and only challenge suspicious traffic. They load third-party scripts, so treat them like any other external service in your privacy notice.
- Content rules: block submissions containing links in fields that should never have them, such as a name or phone number.
- Rate limiting and a firewall: a web application firewall can block known bad networks and throttle repeated submissions before they reach WordPress.
Layering two or three of these works far better than relying on one. A honeypot plus an invisible challenge stops most form spam on typical business sites.
Registration and Login Spam
If your site does not need public accounts, check that “Anyone can register” is unticked under Settings > General, and that the default role is Subscriber. Sites that do allow sign-ups, such as shops and membership sites, should protect the registration form like any other form and watch for bursts of new accounts with random names. The same bots often try passwords too, so pair this with the steps in our WordPress login security guide.
Keeping Spam Under Control Long Term
Spam tactics evolve, so spam protection is not entirely set-and-forget. What blocks spam effectively today may need adjusting over time.
Keeping your anti-spam measures and plugins updated ensures they stay effective against new techniques. Reviewing what is getting through occasionally lets you tighten things up before spam becomes a problem again. This kind of upkeep fits naturally into a regular maintenance routine.
Clear out what has already piled up, too. Thousands of spam comments and their metadata make the database larger than it needs to be. With WP-CLI, wp comment list --status=spam --format=count shows how many you have, and wp comment delete $(wp comment list --status=spam --format=ids) --force removes them. Take a backup first, then see our guide to WordPress database optimization for the rest of the clean-up.
Balancing Protection and User Experience
The best spam protection stops bots without getting in the way of real visitors. Striking that balance matters, because overly aggressive measures can frustrate the very people you want to reach.
Older approaches sometimes forced visitors through awkward puzzles or long verification steps. These do block spam, but they also add friction, and some genuine visitors give up rather than jump through hoops to contact you. Visual puzzles can also be impossible for people using screen readers, which makes them an accessibility problem as well.
Modern spam protection increasingly works invisibly, detecting bots in the background without bothering real people. This keeps your forms simple and welcoming while still filtering out the automated junk.
The guiding principle is to make life hard for bots and easy for humans. Keep your forms short, ask only for what you need, and rely on protection that works quietly behind the scenes. Done well, your inbox stays clean and your genuine visitors never even notice the defenses are there.
One habit helps here: check the Spam folder and your form plugin’s blocked entries now and then for false positives. A genuine enquiry that was wrongly blocked is a lost lead, and marking it “Not Spam” helps the filter learn.
Frequently Asked Questions
Why am I getting so much WordPress spam?
Most spam is automated, with bots targeting comment and contact forms across the web. Your site is not being singled out; it is simply being found by bots scanning for forms.
How do I stop spam comments?
Combine comment approval, anti-spam filtering, and bot-detection techniques. Turning off pingbacks, limiting links per comment, and closing comments on old posts and pages that do not need them also helps.
Can spam harm my website?
Yes. Beyond clutter, spam can publish harmful links, slow your site, bloat your database, and carry scams or malware. Keeping it under control protects your site.
Will spam protection block real visitors?
Good spam protection targets bots while letting genuine visitors through easily. The goal is to keep forms simple and accessible while filtering out automated junk, and to check now and then for messages that were blocked by mistake.
Do I need a CAPTCHA on my contact form?
Not necessarily. Start with a honeypot and an invisible challenge. Add a visible challenge only if spam still gets through, and choose one that keyboard and screen reader users can complete.
Keep Your Site Clean and Professional
Spam is a persistent nuisance, but it is very manageable with the right protections in place. Clean comments and forms keep your site professional, fast, and trustworthy.
BlueBotts includes spam protection and ongoing upkeep in our maintenance plans, so your site stays clean without constant effort from you. Request a free site audit or get in touch to keep your site tidy.
Get a free audit covering security, updates, backups, and performance gaps. Takes 60 seconds to request and costs nothing.
