Stop WordPress Comment Spam

Use this page when a WordPress site is receiving comment spam or no longer needs public comments. Start with discussion settings, then add anti-spam filtering if comments should remain enabled.

Decide Whether Comments Are Needed

If the site does not use comments, turn them off:

  1. Sign in to WordPress admin.
  2. Open Settings > Discussion.
  3. Uncheck Allow people to submit comments on new posts.
  4. Save the change.

This affects new posts. Existing posts may still allow comments until their discussion settings are changed.

Tighten Discussion Settings

For sites that keep comments enabled:

  1. Open Settings > Discussion.
  2. Enable Comment author must fill out name and email.
  3. Enable Comment must be manually approved, or at least require approval for first-time commenters.
  4. Hold comments with multiple links for moderation.
  5. Save the changes.

Use An Anti-Spam Plugin

Akismet is included with many WordPress installations and is one common option. Other reputable anti-spam plugins can work too.

Activate Akismet

  1. Log in to your WordPress dashboard.
  2. Open Plugins.
  3. Find Akismet Anti-spam.
  4. Click Activate.

Akismet plugin listed in the WordPress Plugins screen

Activate Akismet from the WordPress Plugins screen.

Connect Akismet

After the plugin is active, WordPress prompts you to connect Akismet to an account.

  1. Click Activate your Akismet account.

Akismet account activation prompt in WordPress

Use the activation prompt to connect Akismet.
  1. Follow Akismet's account setup flow, or choose the existing-key option if you already have an Akismet key.

Akismet setup screen with the I already have a key link

Use an existing key if one has already been issued for the site.
  1. Enter the API key in the Akismet API Key field.
  2. Click Save Changes.

Akismet API key field in WordPress

Paste the Akismet API key, then save the change.

Confirm Protection Is Active

After the key is saved, Akismet starts filtering comment spam. WordPress also adds an Akismet stats page where you can review what has been blocked.

Akismet showing a valid API key and successful activation message

A valid Akismet key confirms the plugin is active.

If Spam Continues

Disable public registration