Title: Managing spam on your site
Published: 19 March 2024
Last modified: 31 March 2026

---

[Home](https://learn.wordpress.org)[Courses](https://learn.wordpress.org/courses/)
[Beginner WordPress User](https://learn.wordpress.org/course/beginner-wordpress-user/)
Managing spam on your site

 [ Exit Course ](https://learn.wordpress.org/course/beginner-wordpress-user/)

 1.   a.  [   Introduction to WordPress  ](https://learn.wordpress.org/lesson/introduction-to-wordpress-2/)
         [Preview](https://learn.wordpress.org/lesson/introduction-to-wordpress-2/)
      b.  [   WordPress essentials: Domains and hosting  ](https://learn.wordpress.org/lesson/wordpress-essentials-domains-and-hosting/)
         [Preview](https://learn.wordpress.org/lesson/wordpress-essentials-domains-and-hosting/)
      c.  [   Choosing and installing a theme  ](https://learn.wordpress.org/lesson/choosing-and-installing-a-theme/)
         [Preview](https://learn.wordpress.org/lesson/choosing-and-installing-a-theme/)
      d.  [   Choosing and installing a plugin  ](https://learn.wordpress.org/lesson/choosing-and-installing-a-plugin/)
         [Preview](https://learn.wordpress.org/lesson/choosing-and-installing-a-plugin/)
      e.  [   Getting started with the WordPress dashboard  ](https://learn.wordpress.org/lesson/getting-started-with-the-wordpress-dashboard/)
         [Preview](https://learn.wordpress.org/lesson/getting-started-with-the-wordpress-dashboard/)
 2.   5 lessons, 3 quizzes
 3.   a.  [   Understanding the difference between WordPress posts and pages  ](https://learn.wordpress.org/lesson/understanding-the-difference-between-wordpress-posts-and-pages/)
         [Preview](https://learn.wordpress.org/lesson/understanding-the-difference-between-wordpress-posts-and-pages/)
      b.  [   Using the Media Library  ](https://learn.wordpress.org/lesson/using-the-media-library-2/)
         [Preview](https://learn.wordpress.org/lesson/using-the-media-library-2/)
      c.  [   Creating posts and pages with the WordPress Block Editor  ](https://learn.wordpress.org/lesson/creating-posts-and-pages-with-the-wordpress-block-editor/)
         [Preview](https://learn.wordpress.org/lesson/creating-posts-and-pages-with-the-wordpress-block-editor/)
      d.  [   Basic WordPress settings  ](https://learn.wordpress.org/lesson/basic-wordpress-settings/)
         [Preview](https://learn.wordpress.org/lesson/basic-wordpress-settings/)
      e.  [   What is the difference between the Block Editor and Site Editor?  ](https://learn.wordpress.org/lesson/what-is-the-difference-between-the-block-editor-and-site-editor/)
         [Preview](https://learn.wordpress.org/lesson/what-is-the-difference-between-the-block-editor-and-site-editor/)
 4.   5 lessons, 2 quizzes
 5.   a.  [   Intro to the Site Editor  ](https://learn.wordpress.org/lesson/intro-to-the-site-editor/)
         [Preview](https://learn.wordpress.org/lesson/intro-to-the-site-editor/)
      b.  [   Using page templates  ](https://learn.wordpress.org/lesson/using-page-templates/)
         [Preview](https://learn.wordpress.org/lesson/using-page-templates/)
      c.  [   Using template parts  ](https://learn.wordpress.org/lesson/using-template-parts/)
         [Preview](https://learn.wordpress.org/lesson/using-template-parts/)
 6.   3 lessons, 1 quiz
 7.   a.  [   Setting up your pages, posts, site logo and navigation menu  ](https://learn.wordpress.org/lesson/setting-up-your-pages-posts-site-logo-and-navigation-menu/)
         [Preview](https://learn.wordpress.org/lesson/setting-up-your-pages-posts-site-logo-and-navigation-menu/)
      b.  [   Creating and customizing a header and footer  ](https://learn.wordpress.org/lesson/creating-and-customizing-a-header-and-footer/)
         [Preview](https://learn.wordpress.org/lesson/creating-and-customizing-a-header-and-footer/)
      c.  [   Nesting and using blocks to create visually appealing content  ](https://learn.wordpress.org/lesson/nesting-and-using-blocks-to-create-visually-appealing-content/)
         [Preview](https://learn.wordpress.org/lesson/nesting-and-using-blocks-to-create-visually-appealing-content/)
      d.  [   Using block patterns  ](https://learn.wordpress.org/lesson/using-block-patterns-2/)
         [Preview](https://learn.wordpress.org/lesson/using-block-patterns-2/)
      e.  [   Embedding media and third-party content on your website  ](https://learn.wordpress.org/lesson/embedding-media-and-third-party-content-on-your-website/)
         [Preview](https://learn.wordpress.org/lesson/embedding-media-and-third-party-content-on-your-website/)
 8.   5 lessons, 3 quizzes
 9.   a.  [   7 Tips to improve website security  ](https://learn.wordpress.org/lesson/7-tips-to-improve-website-security/)
         [Preview](https://learn.wordpress.org/lesson/7-tips-to-improve-website-security/)
      b.  [   Managing spam on your site  ](https://learn.wordpress.org/lesson/managing-spam-on-your-site/)
         [Preview](https://learn.wordpress.org/lesson/managing-spam-on-your-site/)
      c.  [   How to backup your site  ](https://learn.wordpress.org/lesson/how-to-backup-your-site/)
         [Preview](https://learn.wordpress.org/lesson/how-to-backup-your-site/)
 10.  3 lessons, 2 quizzes
 11.  a.  [   How to improve SEO rankings  ](https://learn.wordpress.org/lesson/how-to-improve-your-seo-rankings/)
         [Preview](https://learn.wordpress.org/lesson/how-to-improve-your-seo-rankings/)
      b.  [   How to use headings for accessibility and SEO  ](https://learn.wordpress.org/lesson/how-to-use-headings-for-accessibility-and-seo/)
         [Preview](https://learn.wordpress.org/lesson/how-to-use-headings-for-accessibility-and-seo/)
 12.  2 lessons, 2 quizzes
 13.  a.  [   How to find help with WordPress  ](https://learn.wordpress.org/lesson/how-to-find-help-with-wordpress-2/)
         [Preview](https://learn.wordpress.org/lesson/how-to-find-help-with-wordpress-2/)
 14.  1 lesson

### Security, Spam and Backups

# Managing spam on your site

## Transcript

### ⏎ Introduction

Let’s talk about managing spam on your website. Allowing comments on your website
is a great way to connect with your readers or clients and build a community. Unfortunately,
allowing comments also opens the door for spammers. We have all received messages
about becoming rich overnight or purchasing unwanted products. Comment spam happens
when a spammer posts comments to your website via the blog or context page. In this
lesson, we will look at how you can manage and avoid spam on your website by using
WordPress’s built-in features and an anti-spam plugin.

### Limiting the number of links allowed

Let’s start with the built-in features. By default, WordPress has some built-in 
features to help you prevent spam on your site, which can be found on the settings
discussion page in your dashboard. Number 1: Limiting the number of links allowed.
Since spam comments work through backlinks and encourage visitors to the spammer’s
site, many spam comments will include a high number of links. You may catch some
spam comments on your site by limiting the number of links allowed before it will
be held for moderation or for an admin to approve. Just something to take note of.
The link limit is set to two links by default, but you can lower it to one link 
per comment. It is not recommended to set the limit to zero otherwise all comments
will be held for moderation.

### Update comment moderation settings

The second step you can take is to change the comment moderation settings. In addition
to limiting the number of links in a comment, you can also apply specified words,
phrases, usernames, emails, etc., in the comment moderation text field to automatically
hold comments containing these elements in the moderation queue. I have selected
words like gambling, insurance, win, and a link to a cryptocurrency website. As 
these are things you will often see in spam comments, you are welcome to look at
previous comments to flag certain words.

### Disallow comment keys

Next, you can also disallow comment keys, or, to put it differently, you can have
comments with specified words or elements automatically deleted. This is like the
comment moderation setting, but here, you can specify words, phrases, usernames,
IP addresses, and so forth to automatically place a comment in the trash. This means
you do not need to manually move the comment to the trash from the moderation queue.

### Disable trackbacks

The fourth step you can take is to disable trackbacks. A large part of spam is trackbacks.
Trackbacks and pingbacks notify you that another blog has linked to your content
and vice versa. However, spammers often abuse this feature by sending trackbacks
and pings from spam websites.

### Extra built-in features

The last step on the discussion page is to select all comments to be moderated. 
You can do this by selecting Comment, which must be manually approved. Or you can
choose not to receive any comments at all by deselecting Allow people to submit 
comments.

### Mark comments as spam

Before we move on to plugins, let’s look at how to mark a comment as spam. Go to
comments, and as you will see, we have two spam comments here. Click on both. Cryptocurrency
Mania and Win Big. Go to the bulk action, mark it as spam, and then apply.

### Anti-spam plugins

Another effective way to manage and stop spam is by using an anti-spam plugin. Many
free and paid plugins offer spam protection for your website, which you can find
through the WordPress.org Plugin Directory. Some plugins worth mentioning are Anti-
spam Bee, Clean Talk, and Akismet. There are multiple plugins to choose from in 
the Plugins Directory, so find the one that meets your needs. In this example, I
am going to install and activate Akismet. Make your way to plugins and click on 
Add New. Select Akismet and then click on Install Now. Wait for the installation
to complete, then click on Activate. Once you click activate, you will be redirected
to a page requesting that you set up an account with Akismet. Akismet is free for
personal use, so you can select what to pay, even if it is $0. I will go ahead and
drag the bar on the right to $0 and continue with a personal subscription. Once 
activated, there are several settings you can change for how you would like the 
plugin to manage spam on your site.

### CAPTCHA

Let’s look at a few more security plugins to consider. CAPTCHA is a technology used
to tell robots and humans apart. Find the right CAPTCHA plugin, as this makes it
very hard for spam bots to infiltrate your website.

### Conclusion

Spam plugins can stop and delete many spam comments, but they can’t stop spammers
from accessing your website. Too many requests from spammers to submit comments 
can slow down your site and negatively affect performance. A firewall plugin such
as All in one WordPress Security and Firewall, WordFence, Sucuri, or Jetpack will
help you block unwanted requests before they even reach your site. These plugins
will ward off automated bots and scripts from trying to leave comments. I trust 
these steps will help you secure your site and intercept spammers.

 This is a preview lesson

Register or sign in to take this lesson.

 [ Take course ](https://learn.wordpress.org/course/beginner-wordpress-user/)

 [ Sign in ](https://login.wordpress.org/?redirect_to=https%3A%2F%2Flearn.wordpress.org%2Flesson%2Fmanaging-spam-on-your-site%2F&locale=en_US)

##  Suggestions

 Found a typo, grammar error or outdated screenshot? [Contact us](https://learn.wordpress.org/report-content-feedback/).