DocsHow to Stop WordPress Comment Spam with ActiveLayer

How to Stop WordPress Comment Spam with ActiveLayer

View Markdown

Would you like to stop WordPress comment spam without adding a CAPTCHA?

ActiveLayer checks every new comment with AI on its servers. It moves spam comments to your Spam folder and approves real ones, so you don’t have to moderate every comment by hand.

This tutorial will show you how to set up ActiveLayer to block WordPress comment spam, choose how it handles comments, review what it catches, and test that it works.

To see everything ActiveLayer does for WordPress, visit our WordPress integration page.

In This Article:

Requirements:

  • You’ll need a WordPress site with comments turned on for at least one post.
  • You’ll need admin access to your WordPress dashboard.

Creating Your Free ActiveLayer Account

To get started, you’ll need an ActiveLayer account. The free plan includes 200 spam checks and doesn’t require a credit card.

If you don’t have an account yet, follow our guide on how to sign up for ActiveLayer and get your API key. It walks you through creating your first project and copying your API key, so you can then skip ahead to Installing the ActiveLayer Plugin.

If you already have an account, log in to your ActiveLayer dashboard at app.activelayer.com and click the New Project button.

ActiveLayer new project

Next, enter a Project Name, select WordPress as your Platform, and click Create Project. Your API key will appear on the next page.

create new ActiveLayer project

Note: Your API key is only shown once. Copy it somewhere safe, or keep this tab open until you’ve connected it to WordPress.

ActiveLayer API key setup

Installing the ActiveLayer Plugin

Next, you’ll need to install and activate the free ActiveLayer plugin. In your WordPress dashboard, go to Plugins » Add Plugin, search for ActiveLayer, and click Install Now. Once it’s installed, click Activate.

install activelayer for WordPress platform

You’ll now see a new ActiveLayer item in your WordPress admin menu.

Connecting Your API Key

Then, go to ActiveLayer » Settings and paste your API key into the field. Click Verify Key to connect your site.

enter api key for Activelayer

A green checkmark confirms that your site is connected.

api key added for ActiveLayer

Note: If verification fails, check that you haven’t copied any extra spaces at the start or end of your key. If you’ve lost your key, you can regenerate it from your project page.

Turning On WordPress Comment Spam Protection

ActiveLayer turns on comment protection automatically. You don’t need any other plugin.

To confirm this, go to ActiveLayer » Integrations. The WP Comments row shows an Active badge, and its checkbox is checked.

stop WP Comments spam

This checkbox turns comment protection on or off. Changes to it save right away.

The default settings suit most sites. To see them or change how ActiveLayer handles comments, click Configure in the WP Comments row.

WordPress comment spam protection turned on

This opens the WP Comments settings panel.

Choosing Who to Check and What Happens Next

The first settings decide which comments ActiveLayer checks and what it does with them.

approve wordpress comment
  • Logged-in Users: Also checks comments from visitors who are logged in. This is unchecked by default. ActiveLayer trusts logged-in users, so their comments skip the check. Comments from administrators are never checked.
  • Auto-approve: Approves comments that ActiveLayer marks as clean, so they appear on your site without waiting for you. This is checked by default. If you uncheck it, clean comments follow your normal WordPress moderation settings.
  • Auto-spam: Moves comments that ActiveLayer flags as spam to your WordPress Spam folder. This is checked by default. If you uncheck it, ActiveLayer still logs its verdict, but the comment follows your normal WordPress moderation settings.

Deleting High-Confidence Spam

If you’d rather not keep obvious spam at all, ActiveLayer can delete it for you.

delete WP comment spam
  • Silently Discard: Deletes flagged comments permanently instead of moving them to the Spam folder. This is unchecked by default, and it only works while Auto-spam is checked. Deleted comments can’t be recovered, so leave this unchecked if you’d like to look over spam yourself.
  • Discard Threshold: Sets how confident ActiveLayer must be before Silently Discard deletes a comment. Each comment gets a spam score from 0 to 100. Comments that score at or above this number are deleted. Flagged comments that score lower go to the Spam folder. The default is 95.

Setting Comment Length and Trackbacks

The last settings cover comment length and links from other sites.

  • Comment Length: Sets the shortest and longest comment allowed. The defaults are 10 and 1,000 characters. If a comment is too short or too long, it isn’t posted. Instead, the visitor sees an error, such as Error: Comment must be at least 10 characters long.
  • Trackbacks & Pingbacks: Also checks trackbacks and pingbacks, the notices other sites send when they link to your posts. Both are checked by default.

When you’re done, click Save Settings at the bottom of the panel.

save settings

How Does ActiveLayer Handle New Comments?

ActiveLayer checks comments in the background, so visitors never wait for a verdict. While a comment is being checked, WordPress holds it as pending. The visitor sees WordPress’s usual Your comment is awaiting moderation. message.

Once ActiveLayer has a verdict, it approves a clean comment or moves a spam comment to your Spam folder.

ActiveLayer also holds back the usual “awaiting moderation” email while it checks a comment. That way, you aren’t emailed about comments ActiveLayer handles for you.

Next, you’ll see where to review the comments ActiveLayer checks.

Reviewing Blocked WordPress Comment Spam

ActiveLayer logs every comment it checks, whether it’s spam or not.

To see them, go to ActiveLayer » Submissions.

ActiveLayer Submissions page showing a WP Comments entry with a Spam status

The Provider column shows WP Comments, with the title of the post below it. The Status column shows Pending while ActiveLayer is still checking a comment, then Spam or Clean. If ActiveLayer couldn’t finish a check, the entry shows Failed.

If ActiveLayer flags a real comment by mistake, hover over the entry and click Mark Clean. This changes its status to Clean and approves the comment, as long as Auto-approve is checked. If it isn’t, the comment goes back to Pending so you can approve it yourself.

wp comments activelayer

Note: You can also manage comments from your usual Comments screen. When you mark a comment as spam or not spam there, ActiveLayer updates its own entry and learns from your choice.

Next, you’ll test your setup to confirm that ActiveLayer is catching spam.

Testing Your Setup

Before you rely on ActiveLayer, it’s a good idea to check that it’s working.

To do this, open one of your posts in a private browser window, so you’re not logged in. In the comment form, enter an obvious spam comment, such as an offer to sell backlinks, with a name and email address you don’t use. Then, click Post Comment.

Testing WordPress comment spam protection

WordPress shows the comment as awaiting moderation while ActiveLayer checks it.

After a short wait, go to Comments in your WordPress dashboard and click Spam. Your test comment appears there.

wp comments spam

It’s also logged at the top of the Submissions list with a Spam status.

Note: Each test uses one of your spam checks. Remember to delete your test comment from the Spam folder afterward.

That’s it! ActiveLayer is now checking your WordPress comments and keeping spam off your posts, without asking real visitors to solve a CAPTCHA.

Next, would you like to protect other plugins on your site? ActiveLayer also works with WPForms, WooCommerce, Contact Form 7, and more. See all ActiveLayer integrations.

Still stuck? Contact ActiveLayer support, and we’ll help you get set up.

Frequently Asked Questions

How do I stop WordPress comment spam without a CAPTCHA?

Install the ActiveLayer plugin and connect your free API key. ActiveLayer then checks every new comment in the background. Real visitors don’t see a puzzle or an extra step.

Does ActiveLayer check comments from logged-in users?

Not by default. Comments from logged-in users skip the check unless you turn on Logged-in Users. Comments from administrators are never checked.

Does ActiveLayer check WooCommerce product reviews?

Not through this setting. Product reviews are handled by ActiveLayer’s WooCommerce integration, so WP Comments leaves them alone.

What happens if ActiveLayer can’t be reached or I run out of spam checks?

Your comments keep working as usual. If ActiveLayer can’t complete a check, the comment follows your normal WordPress moderation settings. The same happens once you’ve used all of your spam checks. To keep every comment checked, upgrade to a paid plan.