Ajuved Roshan

How to stop spam on WordPress contact forms and comments

Dozens of junk enquiries a day bury real customers and can even get your emails flagged as spam. Here's how to stop contact form and comment spam on WordPress without annoying genuine visitors.
How to stop spam on WordPress contact forms and comments

Share

Bots constantly scan the web for forms to fill with junk: fake SEO offers, crypto links, gibberish. Besides wasting time, form spam can bury genuine enquiries, and if your site sends lots of junk emails, your domain’s email reputation can suffer.

Here’s how to stop most of it, layered from simplest to strongest.

1. Add a honeypot

A honeypot is a hidden field that people can’t see but bots fill in automatically. If it’s filled, the submission is rejected. It’s invisible to real visitors and stops a lot of basic spam. Many form plugins, including Elementor Forms, WPForms and Gravity Forms, have a honeypot option.

2. Use an invisible CAPTCHA

OptionNotes
Cloudflare TurnstileUsually invisible to visitors; privacy-friendly; free
Google reCAPTCHA v3Invisible score-based check; free for most sites
hCaptchaPrivacy-focused alternative
Puzzle CAPTCHAsEffective but annoying; use only if spam is severe

Prefer invisible options. Making customers identify traffic lights to send an enquiry loses you real leads.

3. Add an anti-spam service

Plugins like Akismet or CleanTalk check submissions against huge databases of known spam. Some form plugins connect to them directly.

4. Validate fields

  • Require a proper phone number format for UAE numbers.
  • Limit or block links in the message field. Real customers rarely paste links.
  • Set sensible minimum and maximum message lengths.

5. Turn off comments if you don’t use them

Most business websites don’t need blog comments, and they attract a huge amount of spam. In WordPress, go to Settings → Discussion and untick “Allow people to submit comments on new posts”, then close comments on existing posts in bulk.

6. Block known bad traffic

A firewall such as Cloudflare or a security plugin can block known bad IP addresses and bot behaviour before it reaches your forms. Rate limiting stops one source from submitting hundreds of times.

7. Make sure real enquiries still arrive

  • Send form emails through SMTP or a transactional email service so they don’t land in spam.
  • Store submissions in the website as well as emailing them, so nothing is lost.
  • Test your forms after adding any spam protection.

What not to do

  • Don’t publish your email address in plain text everywhere. Use a form or a protected link.
  • Don’t stack several anti-spam plugins; they can conflict and block real messages.
  • Don’t add hard puzzles to every form before trying invisible methods.

Good spam protection is the kind your customers never notice.

Spam protection is part of a wider security setup. See the website security checklist, or let me handle it with security and backups.

Drowning in form spam? Message me on WhatsApp or send a project enquiry. I reply within one working day.

Ajuved Roshan, web designer and developer in Dubai, UAE

Written by

Ajuved Roshan

Freelance web designer and developer in Dubai. I design, build, host and optimise WordPress, WooCommerce and Shopify websites for clinics, e-commerce and corporate brands.

(Let's talk)

Need a website like this?

Tell me about your project on WhatsApp. I design, build, host and rank websites for brands in Dubai and the UAE, and I reply the same day.

(Keep reading)

More articles