To stop spam in Contact Form 7, turn on one of its built-in bot checks (Cloudflare Turnstile or Google reCAPTCHA) under Contact > Integration, then add Akismet or a list of banned words for the junk that still gets through. Install the free Flamingo plugin as well. Contact Form 7 does not save messages on its own, and Flamingo keeps a copy of every submission, including the ones marked as spam, so you can check that no real customer was blocked.

Why does Contact Form 7 get so much spam?

Contact Form 7 is one of the most installed plugins on WordPress, so spam programs know what its forms look like and how to fill them in. A Contact Form 7 form with no protection accepts anything that is posted to it. Each submission becomes an email to you, and a bot can send hundreds an hour.

There are two kinds of unwanted messages, and they need different fixes:

TypeWho sends itWhat stops it
Bot spamA program that fills in forms automaticallyA bot check (Turnstile, reCAPTCHA), Akismet, a quiz
Sales pitchesA person, or a person using an AI tool, typing a real messageSorting after the message arrives (see the last section)

The steps below deal with bot spam first, because it is the bigger volume and the easier problem.

Which spam tools does Contact Form 7 include?

The current version of Contact Form 7 ships with five spam tools. You do not need an extra plugin for any of them.

ToolWhat it doesVisitor sees
Cloudflare TurnstileChecks in the background that the visitor is a personUsually nothing, sometimes a small checkbox
Google reCAPTCHA (v3)Gives each visit a score and rejects low scoresNothing, plus a small reCAPTCHA badge
AkismetCompares the message with a large database of known spamNothing
QuizAsks a simple question the visitor must answerA question field
Disallowed listRejects messages containing words or addresses you listNothing

Most sites need Turnstile or reCAPTCHA, plus one of the others. Pick one of the two bot checks, not both.

How do I add Cloudflare Turnstile to Contact Form 7?

Turnstile is free and does not require your site to use Cloudflare for anything else.

  1. Sign in to the Cloudflare dashboard (a free account is enough) and open Turnstile.
  2. Add a site, enter your site's domain, and copy the Site Key and Secret Key.
  3. In WordPress, go to Contact > Integration, find Cloudflare Turnstile, and click Setup integration.
  4. Paste both keys and save.
  5. Open your contact page in a private browser window and send a test message.

Contact Form 7 adds the Turnstile check to every form automatically. To place it somewhere specific, add the [turnstile] tag to the form where you want it.

If you prefer Google reCAPTCHA, the steps are the same. Create v3 keys in the reCAPTCHA admin console, then paste them under Contact > Integration > reCAPTCHA. Contact Form 7 supports only version 3, the invisible scoring version.

How do I set up Akismet with Contact Form 7?

Akismet catches messages that a bot check misses, such as spam typed by low-paid workers or sent through a real browser.

  1. Install and activate the Akismet Anti-spam plugin, then connect it with an API key (a code that links the plugin to your Akismet account) from akismet.com. Check the plans there, because a business site does not qualify for the free personal plan.
  2. Open your form under Contact > Contact Forms and add Akismet options to the fields, like this:
[text* your-name akismet:author]
[email* your-email akismet:author_email]
[url your-website akismet:author_url]
  1. Save the form. Contact Form 7 now sends those fields to Akismet with each submission and treats a positive result as spam.

Can I block specific words in Contact Form 7?

Yes. Contact Form 7 reuses a WordPress setting that was built for blog comments.

  1. Go to Settings > Discussion.
  2. Find Disallowed Comment Keys.
  3. Enter one word, phrase, email address or IP address (the number that identifies the sender's internet connection) per line, and save.

Contact Form 7 marks any submission that contains one of those entries as spam. The match is broad, so a short word like "sex" also blocks "Sussex". Use full phrases from spam you have received, such as a link domain or a crypto offer, rather than single short words.

A quiz is the other low-cost option. Add a tag like [quiz check "What is 2 plus 3?|5"] to the form. Keep the question easy, because a visitor who gets it wrong cannot send the message.

What happens to messages Contact Form 7 marks as spam?

Contact Form 7 does not email a submission it marks as spam, and it does not save it anywhere. The visitor sees an error message, and you never learn the message existed. If a real customer's message trips a filter, it is gone.

The fix is the free Flamingo plugin from the same developer:

  1. Install and activate Flamingo from Plugins > Add New Plugin.
  2. Open Flamingo > Inbound Messages. Every new submission appears here, including the ones Contact Form 7 marked as spam, with a note on which check flagged it.
  3. Look through the spam list once a week. If a real inquiry is there, reply from your inbox as normal.

Flamingo stores submissions in your WordPress database, which can include names and email addresses. Mention it in your privacy policy, and delete old entries you no longer need.

Why do sales pitches still get through?

Turnstile, reCAPTCHA and Akismet look for bots and known spam. A sales pitch from a marketing agency or an AI-written outreach tool is often a real message typed into a real browser, so it passes every check above. Blocking it with stricter word lists tends to catch real customers too.

A better approach for pitches is to let every message arrive and sort it afterward. RevForm does this without a plugin. You change your Contact Form 7 notification address (the To field in the form's Mail tab) to a RevForm forwarding address. RevForm sends real inquiries and uncertain ones to your inbox with a one-line reason, and moves pitches and spam to a separate folder it never deletes. The WordPress setup guide shows the exact fields. For the reasons to sort rather than block, read Contact form spam filter or blocker?.

FAQ

Is Contact Form 7 spam protection free?

Turnstile, reCAPTCHA v3, the quiz and the disallowed list cost nothing. Akismet needs an account, and business sites need a paid plan. Flamingo is free.

Should I use Turnstile or reCAPTCHA?

Both work with Contact Form 7, so choose one. Turnstile shows no badge and needs no Google account. reCAPTCHA v3 shows a badge on every page and sends visitor data to Google, which you should mention in your privacy policy.

Why am I still getting spam after adding reCAPTCHA?

Some spam is typed by people or sent through real browsers, which a bot check cannot detect. Add Akismet or a disallowed list for that kind. Also confirm that the keys saved correctly by sending a test message from a private window.

Why does my form say "There was an error trying to send your message"?

That message often means Contact Form 7 marked the submission as spam or could not send the email. Install Flamingo and check whether the test appears in the spam list. If it does not appear at all, the problem is email delivery, and our guide on contact form emails going to spam covers the fixes.