Guides › Hosting, domain & email › Security & hacks

Comment Spam: Akismet, Moderation and Disabling Comments

Moderation reduces spam.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Security and hacking

Comment spam fills the moderation queue and can add bad links to your site. You can filter it, require approval or turn comments off.

1Install Akismet2Require moderation3Limit links4Use a blocklist5Close old posts6Disable comments completely7Clean the backlogFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Install Akismet

Illustration for Step 1: Install Akismet

Activate Akismet, connect it with an API key and turn on Silently discard the worst spam.

Step 2: Require moderation

Illustration for Step 2: Require moderation

In Settings, Discussion tick Comment must be manually approved and Comment author must have a previously approved comment.

Step 3: Limit links

Illustration for Step 3: Limit links

Set Hold a comment in the queue if it contains 2 or more links.

Step 4: Use a blocklist

Illustration for Step 4: Use a blocklist

Add known spam words and IP addresses to Disallowed Comment Keys.

Step 5: Close old posts

Illustration for Step 5: Close old posts

Automatically close comments on posts older than 30 days.

Step 6: Disable comments completely

Illustration for Step 6: Disable comments completely

Untick Allow people to submit comments on new posts. For existing posts use Bulk Edit.

Step 7: Clean the backlog

Illustration for Step 7: Clean the backlog

Empty the Spam folder.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.