Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

What is: Spam

Spam is content you don’t want and didn’t ask for, often advertising products you are not interested in or linking to websites that may contain malware. And there is always too much of it.

Most people are familiar with spam messages in their email inboxes. As a WordPress website owner, spammers now have more ways to annoy you. They can leave spam comments, submit spam messages through your forms, create spam registrations of fake user accounts, and more.

Dealing with spam wastes valuable time that you could have spent working on your business. Worse, if the spam is visible on your website, then it is also bad for the user experience and SEO.

Luckily, there are effective tools, plugins, and strategies you can use to combat spam.

Glossary: Spam

Combating Comment Spam

Comment spam is a problem for many website owners, and the worst thing is that it is visible to your website visitors.

These comments are usually submitted by automated bots and scripts and often contain links to other websites to boost their SEO, spread malware, or trick your unsuspecting visitors into sharing personal information.

Your first line of defense is comment moderation, where only comments you approve are shown on your website’s front end. If you like, comments from previously approved authors can be automatically approved in the future to save you time.

Comment Must Be Manually Approved

You can also use Google reCAPTCHA to block most spam scripts and bots.

This will require commenters to click a checkbox to prove they are human. If their mouse movements look suspicious, they may be given another test in which they need to click matching objects in a set of images.

ReCAPTCHA Is an Advanced Form of CAPTCHA That Can Distinguish Between Bots and Humans

Another strategy is to remove the ‘Website’ field from the comment form so that commenters don’t get the value of the backlink. This will usually result in less spam because you have taken away the reward spammers are looking for.

You can also stop spammers from accessing your website using security software like Sucuri. Once enabled, any suspicious requests will be blocked before they reach your website.

For more ideas, see our list of vital tips and tools to combat comment spam in WordPress.

Blocking Form Spam

Spammers will also target your online forms, such as contact forms and newsletter signup forms. That’s because spambots also look for non-secure forms so they can email you ad links or send you to phishing sites.

Your first step is to choose the right plugin. Some of the best WordPress form plugins, like WPForms, have built-in antispam protection that verifies each submission using a token.

Anti-spam token in WPForms

WPForms also includes a keyword filter that lets you automatically block submissions that contain spammy keywords like ‘make money fast’.

Like comment spam, you can also add reCAPTCHA to your forms to block spam bots and scripts or block the IP addresses of repeat offenders. Or you can hide your forms from bots by password-protecting them or only showing them to registered users.

For a complete list of methods, see our guide on how to block contact form spam in WordPress.

Stopping Spam Registrations

If your website allows user registration, then you may be noticing a lot of spam registrations. These are often hackers looking for an easy way to gain access to your website.

You can use many of the same strategies to stop spam registrations. For example, you can moderate new user registrations, add a reCAPTCHA field, and block certain users or geographical areas manually or by using a security plugin.

For detailed instructions, see our guide on how to stop spam registrations on your WordPress membership site.

Preventing Other Types of Spam in WordPress

Here are a couple of guides on preventing other types of spam in WordPress:

We hope this article helped you learn more about spam in WordPress. You may also want to see our Additional Reading list below for related articles on useful WordPress tips, tricks, and ideas.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Additional Reading

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!