Sooner or later spam bots find your site. The comment field fills up with links to various sites, and the contact form brings you emails nobody wants. There are several ways to stop it, and they suit different situations. Here we go through the most common ones.
The plugins and methods
- Akismet – a plugin from Automattic that checks comments and forms against an external service and filters out what looks like spam. Because the content is sent to an external service, you should mention it in your privacy policy. The terms of use depend on how the site is used, so read them for your situation.
- Antispam Bee – a free comment plugin that puts the emphasis on privacy. It is a good alternative if you want to avoid sending comments to an external service.
- Cloudflare Turnstile – Cloudflare’s service that checks that a visitor is a human, without the puzzles many associate with CAPTCHA. You can add it with a plugin such as Simple Cloudflare Turnstile, and some form plugins support it on their own. Check in your form plugin what is supported.
- Honeypot – a hidden field in the form that people do not see but bots fill in. If someone fills it in, the submission is rejected. Many form plugins have such a feature built in.
- Turn off comments – if you do not use them. Under Settings and Discussion you can turn off comments for new posts, and you can also change those that are already published.
Comparison
| Method | Protects | Visitor notices | Keep in mind |
|---|---|---|---|
| Akismet | Comments and forms | Nothing | Content is sent to an external service |
| Antispam Bee | Comments | Nothing | Does not protect contact forms |
| Cloudflare Turnstile | Forms and login | Usually nothing or a brief check | Requires a connection to a Cloudflare account |
| Honeypot | Forms | Nothing | Stops simple bots |
| Turning off comments | Comments | No comment fields | No dialogue with readers |
Combine rather than pick one
No method is infallible. A common setup is to have one plugin for comments and a honeypot or Turnstile for the forms. Test that a genuine message gets through after every change, so that you do not block customers. Also check the spam folder at regular intervals, in case something legitimate has been caught.
Spam in forms is also a question of what happens afterwards. Send the form emails to an address where you can sort them, and make sure the sender is an address your domain is allowed to send from, so that genuine messages are not themselves classed as junk. Keep an eye on the login page too, which is often subjected to automated attempts.
In addition, keep WordPress, your theme and your plugins up to date. Spam is usually just annoying, but the same bots also look for known security holes, and an up-to-date site gives them fewer chances.
Our advice
Start by asking whether you need comments at all. Many company sites have them switched on out of old habit, and turning them off removes the problem entirely. If you have a contact form, choose a solution that does not irritate visitors: a form that is hard to fill in costs more enquiries than spam does.
You can find more plugins in the directory at wordpress.org/plugins.