Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared Managed Cloud India
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Best lists Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Security · Guide

How to Stop Comment Spam in WordPress

Short answer

To stop comment spam in WordPress, activate Akismet and connect it with an API key, then tighten Settings → Discussion: require manual approval for first-time commenters, hold comments with two or more links, and close comments on posts older than 14 days. Add moderation and disallowed keys for repeat spam words, and review the spam folder weekly for real comments caught by mistake.

Key takeaways

  • Akismet ships with WordPress and checks every comment against a global spam database.
  • Akismet has blocked more than 574 billion spam items, according to its live counter.
  • WordPress can hold comments with two or more links for moderation.
  • Disallowed comment keys delete matching comments at once, with no notification.
  • Closing comments on posts older than 14 days cuts spam on old content.

What is WordPress comment spam?

Comment spam is unwanted content posted to promote another site, product, or service.

WordPress.org documentation describes it as irrelevant messages, suspicious links, repeated keywords, or generic comments posted just to promote something (Understanding comment spam). Most of it comes from bots, not people, and the goal is usually to place links on as many sites as possible.

Spam bots work at scale. WordPress.org notes that most comment spam is posted in bulk across many websites, not aimed at your site alone.

Your site is one stop in a run that hits thousands of sites a day.

Spam comments hurt more than they look. They fill the moderation queue, slow the comments screen, and can push spam links onto pages Google indexes if they are approved by mistake.

How do you turn on Akismet?

Akismet is the spam filter WordPress ships with, and switching it on takes about a minute.

  1. Open \“Plugins\” in the dashboard and click \“Activate\” under Akismet Anti-spam.
  2. Choose a plan, from a personal blog to a business site.
  3. Copy the API key from Akismet.com and paste it into the Akismet settings.
  4. Filtering starts at once, and caught spam appears on the Comments screen.

Akismet checks every comment and form submission against its global spam database, and comments from real people go through as usual (Akismet). Its homepage counter passes 574 billion pieces of spam blocked, and counting, as of November 2026.

Akismet is free for personal blogs, and paid plans cover businesses and commercial sites, according to the WordPress.org plugin page (Akismet Anti-spam). You need an API key to use it, which you get from Akismet.com after activation.

Akismet also checks contact forms, WooCommerce reviews, and sign-up forms, not just comments. That matters, because spam bots submit fake forms as often as fake comments.

Akismet 5.7.2, released on 19 August 2026, is the current version, and it requires PHP 7.2 or above. Update it like any other plugin, from the dashboard Plugins screen.

Jetpack Security lists spam prevention among its features, so check it before you add a second anti-spam plugin (How to Secure Your WordPress Login Page).

Which Discussion settings stop the most spam?

WordPress includes built-in settings that cut most comment spam without any plugin.

SettingWhereWhat it does
Comment must be manually approvedSettings → DiscussionEvery comment waits for approval
Comment author must have a previously approved commentSettings → DiscussionFirst-time commenters wait for approval
Hold a comment with 2 or more linksSettings → DiscussionLink-heavy comments wait for review
Users must be registered and logged inSettings → DiscussionOnly account holders can comment
Automatically close comments after 14 daysSettings → DiscussionOld posts stop accepting comments

WordPress.org documentation recommends moderation as one of the simplest and most effective ways to deal with spam (Understanding comment spam). When moderation is on, comments do not appear until an administrator approves them.

Require a name and email address for every comment, and require login for sites with many members. WordPress.org notes that these steps make commenting a little harder for spammers, which is often enough.

Turn off pingbacks and trackbacks if you do not need them. Uncheck \“Allow link notifications from other blogs\” in Settings → Discussion, so other sites cannot push notifications into your comments (Settings Discussion screen).

A limit of 2 works for most sites. Spammers used to post five or ten links per comment, but most now use only one or two, so a low limit still catches the worst while letting real readers share a link (Settings Discussion screen).

If your forms also get spam, see our WPForms spam protection settings guide.

How do moderation keys and disallowed keys work?

Moderation keys hold a comment for review, while disallowed keys delete it at once.

Add words, IP addresses, email addresses, or names to the Comment Moderation list in Settings → Discussion, one per line. When a comment contains any of them, WordPress holds it in the moderation queue (Comment moderation).

The Disallowed Comment Keys box works the same way, except matching comments are deleted immediately and without notification. WordPress.org warns to be careful, because genuine comments can be deleted without you ever knowing.

Test a new key before you trust it. WordPress provides a \“Check past comments against moderation list\” link under the keys box, which shows which old comments the new keys would have flagged.

Keep the disallowed list short and certain, with words no real reader would use. Put uncertain words on the moderation list instead, so you can review them.

How do you close comments on old posts?

Close comments on old posts, because spammers target posts that nobody watches.

For future posts, open \“Settings → Discussion\”, tick \"Automatically close comments on articles older than [X] days\", enter 14, and save changes.

For posts already published, use bulk edit:

  1. Go to \“Posts\” in the dashboard.
  2. Check the boxes next to the posts you want to change.
  3. Choose \“Edit\” from the Bulk actions dropdown, then click \“Apply\”.
  4. Set \“Comments\” to \“Do not allow\” and click \“Update\”.

WordPress.org documentation notes that disabling comments in Settings → Discussion usually applies only to future content (Understanding comment spam). To stop comments on posts already published, use bulk edit or edit each post.

You can also close comments on one post. Open the post editor, find the Discussion panel, choose \“Closed\”, and save (Comment moderation).

If comments vanish after a settings change, see our guide to fix comments not showing.

How do you clean up spam that already got through?

Clean up spam from the Comments screen, where you can approve, reply, spam, or trash each comment.

  1. Open \“Comments\” in the dashboard.
  2. Use the Spam tab to review what Akismet caught.
  3. Select spam comments, choose \“Mark as Spam\” or \“Move to Trash\” from Bulk Actions, then click \“Apply\”.
  4. Click \“Empty Spam\” to clear the folder.

WordPress.org documentation explains that the Comments screen supplies bulk actions, so you can select many comments and mark them as spam or move them to trash at once (Comment moderation).

Empty the spam folder regularly. A large spam database takes space and slows the Comments screen, and marking spam correctly also trains Akismet for the future.

Check who approved a spam comment before you blame the filter. A comment only appears if moderation let it through or an editor approved it by mistake.

Tighten the approval rule instead of adding another plugin.

If spam links already appear on live pages, remove the comments and check the post content. Our guide to remove malware from WordPress covers the case where spam links come from an infection rather than the comment form.

What if real comments land in the spam folder?

Real comments sometimes land in the spam folder, so review it before you empty it.

Open \“Comments → Spam\” and scan the authors and text. A real reader usually writes about your post, uses a real name, and links to nothing or to a relevant site.

Mark a real comment as \“Not Spam\” to restore it and improve future filtering. If the same reader keeps getting caught, approve one of their comments first, so later comments from that email address pass through.

Tell regular readers how to reach you if a comment vanishes. A short note under the comment form, such as comments are checked before they appear, sets the right expectation and stops readers from posting the same comment five times.

Akismet shows a status history for each comment, so you can see which comments it caught and which a moderator spammed or unspammed (Akismet Anti-spam). Check the history when a regular reader says their comments never appear.

What mistakes should you avoid?

The biggest mistake is turning comments off entirely when a few settings would have fixed the spam.

Avoid these errors:

  • Putting common words on the disallowed list, which deletes real comments silently.
  • Emptying the spam folder without checking it first.
  • Leaving comments open forever on old posts.
  • Running two anti-spam plugins that fight over the same comments.
  • Ignoring the moderation queue until it holds hundreds of comments.

For wider attack data, see website security statistics.

Keep comments open where they add value, and close them where they do not. A blog that invites discussion should keep comments on new posts, while old news posts can close after two weeks.

Frequently asked questions

Should I disable comments completely to stop spam?

Only if comments add no value to the site. Most sites can keep comments open with Akismet and the Discussion settings in this guide. Turning comments off removes real discussion too, so try moderation first and close comments only on old posts.

Is Akismet free?

Akismet is free for personal blogs, and paid plans cover businesses and commercial sites. You need an API key to use it, which you get from Akismet.com after activation. The plugin itself ships with WordPress, so there is nothing to download.

Why am I still getting spam with Akismet on?

First check that Akismet is activated and the API key is connected, because an unconnected plugin filters nothing. Then add the repeat spam words to your moderation keys, close comments on old posts, and require approval for first-time commenters. Spam tactics change, so review the settings each month.

Can spam comments hurt my SEO?

Spam links that appear on live pages can hurt, because search engines may follow them and visitors may trust them. Spam held in the moderation queue or the spam folder does not show on the site, so it causes no harm. Review the queue often so nothing slips through.

How do I stop spam on my contact form?

Akismet checks contact forms as well as comments, so turning it on helps forms too. For form-specific settings, open the form plugin settings and turn on its honeypot or spam protection. WPForms includes spam settings that work beside Akismet without conflict.

Sources

  1. Akismet: Anti-Spam Plugin for WordPress Akismet
  2. Comment moderation WordPress.org
  3. Settings Discussion screen WordPress.org
  4. Understanding comment spam WordPress.org
  5. Akismet Anti-spam: Spam Protection WordPress.org
  6. How to Secure Your WordPress Login Page Jetpack

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

WPLegible editors

Researched from the primary sources listed above and checked against our editorial rules. About the site · How we test