How To Prevent Form Spam In WordPress
Best practices, tools and what you should avoid.
Oops! We could not locate your form.
Spam can be a frustrating issue for any business website, especially when it clogs up your inbox or your CRM with irrelevant, unwanted, or malicious submissions.
Whilst email service providers have introduced more rules to limit the amount of spam that hits our inboxes, these don’t prevent spammers from abusing our website contact forms.
Thankfully, there are numerous ways you can limit contact form spam. In this post, I’ll explore the most effective techniques and tools for doing so in WordPress.
I’ll look at both good and bad examples to help you banish excessive spam, without impacting your genuine users and their form submissions.
Form spam happens when bots or bad actors, exploit forms on your website to submit irrelevant, harmful, or promotional content.
It can vary from just being a bit of an annoyance, all the way through to being a huge security risk.
Spam can:
To combat spam, it is best to employ a combination of tools and strategies. These should be in addition to ensuring your website’s security is prioritised, with quality hosting and a robust security solution in place.
Google’s reCAPTCHA is a popular anti-spam solution that verifies human users through various tests. There have been a number of versions of reCAPTCHA over the years, improving usability and evolving to handle more advanced bots.
The most recent version is reCAPTCHA v3, but much of the internet still uses v2.
To implement reCAPTCHA in WordPress, you can use contact form plugins like Gravity Forms, which have built-in reCAPTCHA integrations.
Akismet is a very commonly used WordPress plugin that checks form submissions against its global spam database.
Akismet automatically filters out submissions that match known spam patterns, allowing only genuine messages to pass through.
Many WordPress form plugins include native anti-spam tools. For example:
I mentioned Honeypot as a built-in feature or integration available for most of the contact form plugins above. But what exactly is it?
A honeypot is a spam prevention method that uses a hidden field added to forms. Legitimate users won’t interact with this field because it’s invisible, but bots will fill it out, triggering the spam filter.
A firewall is a must for any website, and particularly a business site. They are not only for preventing form spam, as they have a much broader remit.
Firewalls protect your site by filtering malicious traffic before it reaches your server. Tools like Sucuri and Cloudflare, include options to block known spam IPs, reduce bot traffic, and strengthen overall site security.
Manually or automatically blocking known spam IPs (as mentioned above as a firewall feature) can significantly reduce spam. You can use tools like Cloudflare, Sucuri and Wordfence, or your hosting provider’s tools to block repeat offenders.
Nearly every contact form asks for or requires an email address. Another anti-spam option is to limit or block certain email sending domains from use, in mandatory email fields within your forms.
For example, if you are a B2B organisation, you can block submissions from webmail addresses, and require business email addresses.
Alternatively, you can create a block list, to which you can add the email domains that you commonly receive spam form submissions from.
Many contact form plugins and tools like Gravity Forms and Fluent Forms allow you to set rate limits on form submissions, to prevent bots from overwhelming your site with multiple entries. They can restrict the number of submissions per IP address within a set timeframe.
If you’re looking for something less intrusive than traditional CAPTCHAs, or want to avoid using Google reCAPTCHA, you can consider these alternatives:
While mostly effective, ensure that the questions are clear and easy to answer to avoid frustrating users.
CAPTCHA tests that are too involved or repetitive can frustrate users, leading to form abandonment. Ensure your CAPTCHA solution balances security with a good user experience, so you don’t drive people away.
I’m sure we’ve all experienced the frustration of having to click through several variations of these in a row, before being able to progress:

CAPTCHA that are difficult to complete, provide a frustrating user experience and put up barriers to accessibility. They are more likely to deter humans, rather than bots. So take care when implementing a solution.
Some styles of captcha are very difficult, if not impossible for those with visual impairments, so be careful to select a solution that is accessible.
Examples of common CAPTCHA issues:
Many traditional text, object and audio based CAPTCHA are easily solved by machine learning and AI tools. This has meant that over the years, they have become more and more complex to try and outsmart this technology. Unfortunately, this has meant that many have also become an accessibility nightmare, especially for users with visual, auditory or cognitive impairments.
Here are some examples of bad CAPTCHAs:


Using outdated or poorly maintained plugins can leave your forms vulnerable to spam and other attacks. Make sure you regularly update your plugins to keep them secure.
Failing to test your anti-spam measures can result in legitimate users being blocked or spam still getting through. Always verify that your chosen solution or solutions work as intended.
Make testing your anti-spam solutions a normal part of testing functionality across your site.
Here is a great example of a spam feature on The North Face website, blocking a legitimate user (from Dave Mullen on LinkedIn.)

The best way to prevent form spam in WordPress, is to use a combination of tools and methods that best suit your website and your audience.
First a foremost, make sure that general website security is a priority. Providing a secure website and ensuring the protection of user data is vital for any business, and failing to do so can come at a high cost. Ensure quality hosting and a proper and robust security solution with a firewall.
Secondly, choose your contact form solution carefully, and look for what anti-spam features are included. A free plugin may be tempting, but we recommend a premium solution like Gravity Forms, that is well maintained and regularly updated. The price of a premium plugin is nothing when compared to the interruption excessive spam can cause or the potential cost of a data breach.
Finally, from reCAPTCHA and Akismet to IP blocking and honeypots, there are numerous ways to keep your forms secure and spam free (mostly) while ensuring a smooth user experience. Avoid outdated CAPTCHAs and alternatives that cause frustration for your users.
By implementing these techniques effectively, you can protect your site from spam, improve performance, and focus on what matters most – engaging with your genuine audience.
Need help securing your WordPress site and forms? Contact us today to learn about our managed WordPress Support & Maintenance plans.
CAPTCHA is an abbreviation of ‘Completely Automated Public Turing test to tell Computers and Humans Apart’. CAPTCHAs are designed as a spam prevention security measure to differentiate between human and machine inputs.

If you’d like to learn more about our WordPress & WooCommerce Support & Maintenance plans, drop us an email or give James a call.
Our plans provide a holistic solution to your website’s performance, reliability and security, and are inclusive of premium tools and services.
WordPress Core version 7.1 was released on August 19th. Here's a quick summary of some of the main changes and updates.
Vikki Baker
The biggest update to the world's most popular CMS in years has landed, and it changes more than just the editor.
Martin Coates
When your business reaches a certain scale, your website stops being a simple marketing tool and becomes a critical piece of infrastructure.
Rommel Plofino