DevNJ Make your business ease
Column /

Cloudflare Turnstile Contact Form: siteverify Validation vs reCAPTCHA

Column › Site operations

Cloudflare Turnstile Contact Form: siteverify Validation vs reCAPTCHA

"The contact form gets spam every day." Companies in every country tell us the same thing. If you added a Cloudflare Turnstile contact form and the spam did not stop, the usual cause is that the widget is on the page but server-side validation (siteverify) is never called. Others tightened their defence and started losing real enquiries.

In Europe a second question is layered on top. The most common tool, reCAPTCHA, raises questions about cookie consent and transfers of data to the United States, and image-selection CAPTCHAs are being reconsidered for accessibility. Choosing by strength alone opens a gap somewhere else.

This article compares four options: reCAPTCHA, Cloudflare Turnstile, Friendly Captcha and honeypots (hidden fields that people cannot see). We compare them on protection, consent, accessibility and effort, and set out the setup flow for WordPress (Contact Form 7, Gravity Forms) and for static sites. The evidence comes from Google, Cloudflare and Friendly Captcha documentation, W3C, France's CNIL and the Dutch data protection authority (AP, Autoriteit Persoonsgegevens).

What happens after a message arrives is out of scope. Classification, owners and deadlines are covered in our enquiry triage article; this one is about what to stop before it arrives.

The short version

  1. A Turnstile widget alone protects nothing. Your server must call siteverify and check success (sections 6-3 and 8).
  2. A token expires after 5 minutes and works once. After a failure, reset the widget and get a new token instead of resending the old one (section 8-4).
  3. Make the first layer something that lives on your own site. Add an external challenge only for the bots that remain (chapters 2 and 4).

If you only want the comparison, jump to the table of the four options (section 4-5).

Main sources: Google's reCAPTCHA FAQs (Google Cloud and Google for Developers), Cloudflare's Turnstile documentation and Privacy Addendum, Friendly Captcha's website and developer docs, W3C's "Inaccessibility of CAPTCHA" and WCAG 2.2 Understanding pages, the CNIL cookie Q&A, EDPB Guidelines 2/2023, and the Gravity Forms and Contact Form 7 documentation. Google, Cloudflare and Friendly Captcha documentation and the Official Journal notice were re-checked on 17 November 2026; the rest was checked on 6 November 2026.

What this article answers Short answer
Can reCAPTCHA be used in Europe? Yes, with work. Google has been a processor since April 2026 (chapter 1)
Is consent needed? It differs by tool. CNIL asks whether the provider reuses data for itself (chapter 3)
How do the four differ? Protection, consent, accessibility, effort and cost in tables (chapter 4)
Accessibility Image CAPTCHAs fall under WCAG 1.1.1; the EAA has a limited scope (chapter 5)
WordPress and static sites Setup flows in chapters 7 and 8
After installing Check cookies and requests, catch false positives (chapter 9)

1. What has changed: reCAPTCHA's role has shifted

For years the standard advice was "add reCAPTCHA and you are done". In 2026 that premise moved a little. This chapter separates what has changed from what is still undecided.

1-1. In April 2026 Google moved reCAPTCHA to a processor role

Google's Cloud FAQ states that from 2 April 2026 the customer is the sole data controller. Google switches to the role of processor and gives up deciding the purposes and means of processing.

References to Google's Privacy Policy and Terms were removed from the reCAPTCHA badge, and the FAQ recommends removing them from your own pages. You may hide the badge if you state that reCAPTCHA protects the site, and you should review whether your user-facing privacy disclosures cover the purpose of processing.

The consequence is that more of the explanation now sits with the site owner. The FAQ says nothing about whether cookie consent is required, so the change did not settle that question.

When re-read on 17 November 2026, the FAQ words its scope as "Fraud Defense" customers. That suggests a product-name change, but I could not confirm how it maps to reCAPTCHA in detail. Check the names in your Google Cloud contract and console.

1-2. It sets a cookie and now sits in Google Cloud

The same FAQ says reCAPTCHA sets a necessary cookie (_GRECAPTCHA) for its risk analysis, and that you can use the www.recaptcha.net domain to avoid cookies set by google.com.

On cost, Google Cloud reCAPTCHA is free up to 10,000 assessments per month. The developer FAQ also sets limits for the standard product (above 1,000 calls per second or one million per month you must move to Enterprise), and says migration takes 5-10 minutes with no code change. A small contact form fits comfortably inside the free allowance.

1-3. The US transfer basis is still being litigated

The EU-US Data Privacy Framework adequacy decision was adopted on 10 July 2023. The General Court dismissed the challenge on 3 September 2025, but the applicant appealed on 31 October 2025 (Case C-703/25 P, notice in the Official Journal). A search on 17 November 2026 found no judgment or Advocate General opinion.

The decision remains in force, yet there is no final ruling. If you send data to a US provider, choose with a possible review in mind. The timeline below shows how we got here.

July 2023 adequacy decision, September 2025 General Court dismisses the action, October 2025 appeal, April 2026 reCAPTCHA becomes a processor, Court of Justice ruling still to come. 2023.07 DPF adequacy decision Basis for EU to US transfers 2025.09 General Court dismisses action Decision stays in force 2025.10 Applicant appeals Case C-703/25 P 2026.04 reCAPTCHA becomes processor Customer is the controller TBC Court of Justice ruling No ruling at the check date
Figure 1: The DPF and reCAPTCHA's role (sources: Google Cloud reCAPTCHA FAQ, Official Journal notice, checked 17 November 2026)

2. The big picture: think in layers

Handing spam defence to a single component leaves you bare when it fails or when you must remove it. Think in layers. This chapter sorts out who sends what and where each layer sits.

2-1. Three kinds of message arrive

A form receives three things, and a CAPTCHA only helps with one of them.

What arrives Example Does a CAPTCHA stop it?
Automated bot posts Link-stuffed text, random strings Usually
Human-written sales pitches Web, SEO, recruiting offers No
Genuine enquiries Quotes, questions, customers Must never be stopped

A stronger CAPTCHA does not reduce human sales messages; a person passes the challenge. Those are handled after arrival by classifying them as sales or proposals and placing them in a queue without a deadline (chapter 10).

2-2. Four layers

W3C's "Inaccessibility of CAPTCHA" recommends starting with the least intrusive method and strengthening only if attacked. We follow that order.

Layer Method Visitor effort Data sent out
1. Entry Honeypot, time-to-submit, rate limits None None
2. Challenge Turnstile, Friendly Captcha, reCAPTCHA Little to some Yes
3. Server check Token verification, content checks None To the verifier
4. Triage Classify, quarantine, watch deadlines None Depends

Layer 1 fits nearly every form. Add layer 2 when layer 1 is not enough. Layer 3 is mandatory once you add layer 2. Layer 4 happens after arrival and lives in another article.

Entry measures, challenge, server verification and triage stack in order. Layers two and three send data to external services. Triage is covered in another article. 1. Entry Honeypot, time 2. Challenge External service 3. Verify Server side 4. Triage Other article Lightest measures first, from left to right
Figure 2: Four layers protecting a form (source: DevNJ's arrangement based on W3C, Inaccessibility of CAPTCHA, checked 6 November 2026)

3. Consent: separate the cookie question from the personal-data question

"Does reCAPTCHA need consent?" has no single answer because two questions are stacked. This chapter separates them and checks what regulators have actually said.

3-1. Question one: reading from or writing to the device (ePrivacy)

Storing or reading cookies on a device falls under Article 5(3) of the ePrivacy Directive; in the Netherlands that is Article 11.7a of the Telecommunications Act. According to the AP, a site operator does not need consent for functional cookies but must inform visitors, while "other cookies" such as tracking cookies need consent.

EDPB Guidelines 2/2023 (final version, October 2024) set out the technical scope of that rule. Whether an exemption applies is not decided there; it is assessed per purpose. "It is a CAPTCHA, so it is exempt" is not a safe shortcut.

3-2. Question two: processing personal data (GDPR)

A CAPTCHA sends IP addresses and browser details to an outside service, which is processing of personal data. Before "is consent needed?" come other questions: what is the legal basis, what contract exists with the provider (Article 28 where it is a processor), and what justifies any transfer outside the EU? Consent is only one possible basis; protecting a form can also rest on legitimate interest.

Even when that is settled, question one remains. Answer the two questions separately.

3-3. CNIL's test: does the provider reuse the data?

The most concrete public text on CAPTCHAs is the CNIL's cookie Q&A (question 17).

Situation CNIL's position
Purpose is only securing the site or authentication No consent needed
Provider reuses data for its own purposes Consent needed
Asking for consent lets users bypass the protection Prefer consent-free alternatives or other security
Provider's terms Check them

Two readings follow. A CAPTCHA used only for security can be treated as consent-free, and one where the provider can use the data for itself needs consent. With reCAPTCHA, even after the processor switch, you cannot answer without reading the contract (the Cloud data processing terms). CNIL does not name reCAPTCHA, so neither do we say "required" or "not required".

3-4. Points to check for each option

The "provider's description" column is what the vendor says in its own documents, not independently verified.

Option Provider's description What you check
Honeypot, timing, rate limits Nothing leaves your site Retention if you store IP addresses
reCAPTCHA Necessary cookie (_GRECAPTCHA); processor role Cloud terms, cookie handling, privacy notice
Turnstile Processes only needed signals; does not access form input Privacy Addendum roles, measure cookies
Friendly Captcha No cookies or personal data stored (vendor claim) Processing location (global by default), contract

No option comes with a guaranteed "no consent". Chapter 9 gives the browser check that confirms what your installation really does.

4. The four options side by side

Now each option, compared on protection, consent, accessibility, effort and cost. Vendor statements are what the vendors wrote, not measured results.

4-1. Google reCAPTCHA: scores, with more paperwork

reCAPTCHA v3 returns a score from 0.0 (likely a bot) to 1.0 (likely a person) without asking the visitor to do anything. If you want fine-grained routing by score, it is currently the strongest candidate. Google's documentation advises collecting scores first and choosing a threshold from your own traffic.

It is free to 10,000 assessments a month on Google Cloud, which covers a small form. The paperwork is heavier than for the others: the Cloud contract, cookie handling, badge and privacy notice wording, and the US transfer basis.

4-2. Cloudflare Turnstile: free, and it does not read form input

Turnstile is Cloudflare's CAPTCHA alternative. The documentation says it can be embedded without routing traffic through Cloudflare and runs non-interactive checks such as proof of work, API probing and behavioural signals rather than puzzles. Widget modes are Managed (shows a checkbox depending on risk), Non-interactive and Invisible.

On privacy, the documentation says it "does not access, store, or transmit" form entries. The Privacy Addendum (updated 18 June 2025) says Cloudflare is a processor for providing the service and a controller for signals used to improve bot detection. Signals include IP address, TLS fingerprint, User-Agent and sitekey. The addendum gives no retention period.

The free plan offers 20 widgets, 10 hostnames per widget and unlimited verifications, with a 7-day analytics look-back; removing Cloudflare branding needs Enterprise (developer docs; the plans page was updated on 14 August 2026, checked 17 November 2026).

4-3. Friendly Captcha: EU processing is possible, but paid

Friendly Captcha is a German company's service. The visitor's device solves a cryptographic puzzle (proof of work) in the background, with no image tasks. The website advertises "no cookies", no personal data stored and WCAG 2.2 AA.

Mind where data is processed. The developer docs say the default endpoint is served from all over the world, so some requests may be handled outside the EU. The dedicated EU endpoint hosted in Germany needs the Advanced or Enterprise plan.

The website listed Starter at 9 euros a month (1 domain, 1,000 requests), Growth at 39 euros (5 domains, 5,000 requests) and Advanced at 200 euros (50 domains, 50,000 requests). The free tier is for non-commercial, low-traffic sites, so a company site should not count on it. Prices change; check before buying.

4-4. Honeypots and on-site measures

A honeypot is a field people cannot see; a submission that fills it is treated as spam. W3C lists it among non-interactive alternatives. Nothing is sent out, visitors do nothing, and it costs nothing.

Weaknesses: bots can learn to spot hidden fields, and hand-typed sales messages sail through. Combine it with a minimum time-to-submit and rate limits. Gravity Forms' "Advanced Honeypot" bundles a hidden field with a site-specific hash, state validation, a submission speed check and link detection, added over several versions.

4-5. Five axes

Axis Honeypot etc. reCAPTCHA Turnstile Friendly Captcha
Strength vs advanced bots Low High (score) High High
Data sent out None Yes Yes Yes
Cookies (vendor says) None _GRECAPTCHA Check docs None
Visitor effort None Little Little Little
Cost guide Free Free to 10,000/month Free From 9 euros/month

Ratings are DevNJ's own arrangement and assume you confirm them at installation. What leaves your site matters more than which is "stronger"; strength depends on the bots, while consent and data handling stay with you.

5. Accessibility: why image CAPTCHAs are a problem

The rethink of CAPTCHA is also about whether everyone can use the form. This chapter covers W3C's findings and the European Accessibility Act (EAA).

5-1. What W3C says

W3C's "Inaccessibility of CAPTCHA" (16 December 2021, updated draft) says the CAPTCHA task structurally excludes many people with disabilities: image text cannot be read by blind users, audio versions are hard to understand and unusable for deaf-blind people, and English-literacy assumptions burden others. Repeated failure is hard on people with anxiety or cognitive disabilities.

It also notes that CAPTCHAs are becoming less effective as OCR and pattern recognition improve. Its recommendation is to use the least intrusive method that meets the need, and offer several types if interaction is required. Non-interactive options listed include spam filtering, proof of work, heuristics and honeypots. It is a draft note, not a W3C recommendation.

5-2. Which WCAG 2.2 criteria apply

Criterion Level Relation to CAPTCHA
1.1.1 Non-text Content A Requires a purpose description and an alternative CAPTCHA for another sense
3.3.8 Accessible Authentication (Minimum) AA No cognitive function test in authentication; object recognition is an exception

Watch the scope of 3.3.8. It covers authenticating existing users, such as logging in, and not sending a contact form. Reading "image selection is an object-recognition exception, so it is safe" mistakes the scope. The criterion that bears directly on a form CAPTCHA is 1.1.1.

The Understanding page admits that every CAPTCHA is unsolvable for some disabled users. It recommends offering more than one sensory modality and providing a human contact route that bypasses the CAPTCHA.

5-3. The EAA has a limited scope: check whether it covers you

The EAA (Directive 2019/882) has applied since 28 June 2025, but only to specific consumer services such as e-commerce, banking and passenger transport. Micro-enterprises (fewer than 10 staff and turnover or balance sheet total up to 2 million euros) are exempt for services. See our EAA and redesign article.

So the contact form on a B2B company site may not be directly covered. Webshops are another matter: on 24 March 2026 the Dutch consumer authority ACM reported checking about 100 large webshops and found 61% where ordering with assistive technology was impossible, citing an inaccessible puzzle to verify humans as one example. ACM says companies that do not improve risk enforcement.

Legal duty aside, not filtering visitors at the front door also affects how many enquiries you receive.

6. Strength: what each layer stops and what it cannot

Strength is best judged by what you want to stop. This chapter shows which layer works on which attacker.

6-1. Attacker types and the layers that work

Attacker Entry (1) Challenge (2) Server check (3)
Simple bot filling hidden fields Works Works n/a
Advanced bot driving a browser Weak Works Required
Human sales message No No No
Repeated identical submissions Rate limits work Works Rejects reused tokens
False positive on a real person Rare Possible Possible

No layer fully handles human sales messages and false positives. The answer to false positives is quarantine rather than rejection.

6-2. Quarantine, do not reject

Rejecting by score risks deleting real enquiries. Even a pass/fail tool like Turnstile causes the same problem if failed submissions are thrown away. Move them to a separate queue and review it once a week.

Review takes time, so record the weekly count and revisit settings if it grows. Thresholds and quarantine practice are covered in chapter 4 of the triage article.

6-3. Server-side validation is the real protection

The challenge widget runs in the browser, but trusting the browser's result alone lets forged tokens through. Cloudflare's documentation makes calling Siteverify mandatory, with tokens expiring after 5 minutes (300 seconds) and usable once. Cloudflare's get-started page warns that without the server-side call, the validation counts in Turnstile Analytics stay at zero, so the dashboard tells you after installing whether validation is happening at all. reCAPTCHA and Friendly Captcha follow the same principle.

The setups in chapters 7 and 8 all include this step.

7. WordPress: Contact Form 7 and Gravity Forms

In WordPress, what you can use and where you set it depends on the form plugin. This chapter covers the two most common ones, as far as we could confirm.

7-1. Contact Form 7

Contact Form 7 takes external keys under Contact > Integration. According to a search-result excerpt of the official Turnstile page, it recommends Turnstile unless you have reasons to use reCAPTCHA (we could not open the page itself, so this is unverified). The steps:

  1. Create a widget in Cloudflare (no need to route the site through Cloudflare) and choose Managed mode.
  2. Enter the site key and secret key on the Integration screen.
  3. The widget appears on all forms. To move it, add a [turnstile] tag to the form template.

reCAPTCHA v3 is configured on the same Integration screen, but we could not open the official reCAPTCHA page, so we leave out the details. Some guides say Turnstile support arrived in version 6.1; the official page did not state a version. Check the version you run.

We found no honeypot setting in Contact Form 7 itself (as far as we could confirm), so layer 1 would come from another plugin or from your theme.

7-2. Gravity Forms

Gravity Forms covers layers 1 and 2. From its documentation:

Measure Where and requirement Note
Advanced Honeypot Form settings, Spam Detection Hidden field, hash (2.7), state validation (3.0), speed check (2.9.21), link detection (3.1.0)
reCAPTCHA Official add-on (v3) Threshold can be set
Cloudflare Turnstile Official add-on Added as a field; not inside a Repeater
Handling flagged entries Form settings Do not create an entry, or save as spam

The last row is the useful one: choosing save as spam keeps the record without sending notifications or running add-on feeds, which suits the weekly review. The documentation itself says no single measure catches everything and recommends combining them.

7-3. Load scripts only where needed

Loading an external script on every page means external requests on every page. Guides note that reCAPTCHA v3 implementations often load on all pages. Loading only on pages with a form shrinks both the traffic and what you need to explain.

Some plugins let you restrict the pages; if not, register the script conditionally in your theme for form pages only.

7-4. Friendly Captcha on WordPress

Friendly Captcha has a WordPress plugin; its WordPress.org page lists Contact Form 7 and Gravity Forms as supported. You enter a site key and API key in the plugin settings. A separate Gravity Forms add-on exists but was at alpha when we looked. Check the current release before going live.

8. Static sites: a small function behind the form

A static site has no server-side code, so the form posts to a separate endpoint that validates before sending mail. This chapter lays out that structure.

8-1. The overall flow

Four parts are enough: the form on the page, the challenge widget, a small serverless function that validates and sends the email, and the receiving mailbox.

Step What to do Note
1 Put a hidden field and the widget on the page Hide the field from screen readers and Tab as well
2 The function receives the token It arrives as a form field
3 The function calls the verification API Keep the secret key only in the function
4 If it passes, send the email Failures go to a quarantine address
5 Show the visitor a confirmation Same screen either way keeps the logic less obvious

Step 3 is the one you cannot skip. The verifying function must sit where the browser cannot see it.

8-2. Calling Turnstile's verification: without siteverify, a token proves nothing

The widget only produces a token string. Cloudflare's documentation says tokens can be forged, so server-side validation is mandatory. Inside a form the widget adds a hidden input named cf-turnstile-response, so the token arrives with the other fields. Your server passes it to siteverify and reads the result.

Verification is a POST to https://challenges.cloudflare.com/turnstile/v0/siteverify (challenges.cloudflare-cn.com for widgets served from China). The body can be form-encoded or JSON, and the reply is JSON.

Field Required Content
secret Yes The widget's secret key; keep it on the server only
response Yes The token from the browser (up to 2,048 characters)
remoteip No The visitor's IP address
idempotency_key No A UUID that makes retries safe

The reply carries success (boolean), challenge_ts (when it was solved), hostname (where the widget was served), error-codes (on failure), and action and cdata (values set on the client). Beyond success, the documentation also recommends checking hostname (and action where relevant) against your own site.

const body = new FormData();
body.append("secret", env.TURNSTILE_SECRET_KEY);
body.append("response", token);

const res = await fetch(
  "https://challenges.cloudflare.com/turnstile/v0/siteverify",
  { method: "POST", body, signal: AbortSignal.timeout(10000) }
);
const result = await res.json();
if (!result.success || result.hostname !== "example.com") {
  // Send the submission to quarantine; log error-codes
}

The official examples set a request timeout (10 seconds in the examples) and retry transient failures with a unique idempotency_key, with a delay between attempts and at most three tries. Decide in advance what happens when the API cannot be reached: let through, quarantine or block. This article recommends quarantine rather than rejecting.

Always call from the server and never expose the secret key to the browser.

8-3. Reading the error codes: server side versus widget side

When validation fails, error-codes says why. Here are the codes in Cloudflare's documentation, with how to read them and what to do.

Code Meaning What to do
missing-input-secret The secret was not sent Fix the calling code
invalid-input-secret The secret is invalid or expired Check the key in the dashboard
missing-input-response The token was not sent Check the form field name and that the widget rendered
invalid-input-response The token is malformed, invalid or expired Ask the visitor to try again
bad-request The request is malformed Check the format and fields
timeout-or-duplicate Expired or already redeemed Get a new token (turnstile.reset)
internal-error An error on Cloudflare's side Retry after a pause

There are two ways to read this table. missing- codes and invalid-input-secret are bugs in your own implementation, and every genuine submission will fail. invalid-input-response and timeout-or-duplicate are visitor or timing problems, and a retry can succeed. If the error rate is high right after launch, suspect the former.

The codes shown in the browser are a separate family. In Cloudflare's client-side list, 110200 is an unauthorised domain, 110100 and 110110 are invalid or missing sitekeys, 200500 means the Turnstile iframe failed to load (for example when challenges.cloudflare.com is blocked), 400020 is an invalid sitekey and 400070 a disabled one. 300xxx and 600xxx are generic failures for suspected bot behaviour and can be retried.

8-4. Token lifetime, and why a token works only once

A token is valid for 300 seconds (5 minutes) from generation and can be validated only once. The documentation sets out the details.

Item Detail What it means for you
Lifetime 300 seconds from generation Refresh the token if filling in takes over 5 minutes
Uses One Resend after a failure with a new token
Reuse detection Eventually consistent; repeats 5+ seconds after the first success are rejected at least 99% of the time Do not rely on it alone to stop double submissions
Simultaneous requests Two near-simultaneous requests may both succeed De-duplicate on the email-sending side too
Safe retries Retries with the same idempotency_key are not counted as reuse Use it only for retrying network failures

The point of this table is that token validation is not a double-submit guard. If a visitor writing a long message lets the token expire, the submission fails with timeout-or-duplicate. Handling the widget's expiry callback (data-expired-callback) or calling turnstile.reset() to fetch a fresh token saves the message they typed.

For testing, use Cloudflare's published dummy keys. Sitekey 1x00000000000000000000AA always passes and 2x00000000000000000000AB always fails. The secret 1x0000000000000000000000000000000AA always passes, 2x0000000000000000000000000000000AA always fails and 3x0000000000000000000000000000000AA returns timeout-or-duplicate. Production secrets reject the dummy token and test secrets reject real tokens, so do not mix key pairs between test and production.

8-5. The minimum setup for WordPress and static sites

Both environments need the same three things: a widget, server-side validation and a plan for failures.

Environment Widget Server-side validation How to check
WordPress (Contact Form 7) Enter the keys on the Integration screen; it is added to forms automatically The plugin makes the call; no code of your own Do the validation counts in Turnstile Analytics move?
WordPress (Gravity Forms) Add the official add-on's field The add-on makes the call Same. It cannot sit inside a repeater
Static site A cf-turnstile div plus the script in the form A small function behind the form calls siteverify Try both a pass and a fail with the dummy keys

A minimal static form looks like this. The documentation asks you to load the script from Cloudflare's exact URL and not to proxy or cache it.

<form action="/api/contact" method="post">
  <input type="email" name="email" required>
  <textarea name="message" required></textarea>
  <div class="cf-turnstile" data-sitekey="(your sitekey)"></div>
  <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
  <button type="submit">Send</button>
</form>

The function that receives it does the following in order. Adapt the call signature to the platform you use.

export async function handleContact(request, env) {
  const form = await request.formData();
  if (form.get("website")) return thanks();          // honeypot is filled
  const token = form.get("cf-turnstile-response");
  if (!token) return quarantine("missing-token");

  const body = new FormData();
  body.append("secret", env.TURNSTILE_SECRET_KEY);
  body.append("response", token);
  const res = await fetch(
    "https://challenges.cloudflare.com/turnstile/v0/siteverify",
    { method: "POST", body, signal: AbortSignal.timeout(10000) }
  );
  const result = await res.json();
  if (!result.success || result.hostname !== "example.com") return quarantine(result["error-codes"]);

  await sendMail(form);                               // only passed submissions become email
  return thanks();                                    // same screen when quarantined
}

If you paste cf-turnstile into a WordPress theme without a plugin, you must write the validation code yourself. A page with only the widget feels protected but is not. Confirm with the validation counts in the dashboard and by testing with the dummy secrets.

8-6. What differs with Friendly Captcha

Friendly Captcha verifies against a global URL (global.frcapi.com) or an EU one (eu.frcapi.com). To use the EU endpoint, add data-api-endpoint="eu" to the widget and switch the server's verification URL too. As noted, the EU endpoint needs the Advanced plan or above.

8-7. Writing the honeypot

Hide the field not just visually but from screen readers and Tab navigation. Otherwise an assistive-technology user may fill it and be treated as spam.

<div style="position:absolute;left:-9999px" aria-hidden="true">
  <label for="website">Leave this field empty</label>
  <input type="text" id="website" name="website" tabindex="-1" autocomplete="off">
</div>

W3C's example label is along the lines of "This field is for robots only. Please leave blank." On the server, quarantine any submission where the field has a value. A name bots like to fill, such as website, works better.

9. Choosing by situation, and checking after install

This chapter turns the above into choices by situation. These are combinations by circumstance, not real-company case studies.

9-1. Combinations by situation

Situation Suggested combination Reason
Brochure site, little spam Honeypot + time check + rate limits Nothing leaves the site
Bot posts continue, no budget Above + Turnstile (free) Free, low visitor effort
Prefer EU processing, have budget Above + Friendly Captcha (EU endpoint) You choose the location
Google contract and consent already settled Above + reCAPTCHA v3 Fine-grained score routing
Webshop form Avoid image CAPTCHAs; layer non-interactive measures Lost orders and contacts cost more

In every row the first move is layer 1. Add layer 2 after looking at the volume and quality of bots you actually get.

Everyone starts with honeypot and timing. If bots persist add Turnstile; if EU processing matters add Friendly Captcha; if Google is already settled add reCAPTCHA v3. Everyone: honeypot, timing, rate limits Bots persist Turnstile Free EU processing Friendly Captcha Paid Google settled reCAPTCHA v3 10,000 free/month In every row, validate on the server
Figure 3: Choosing by situation (sources: Cloudflare Turnstile plans, Friendly Captcha, Google Cloud reCAPTCHA FAQ, arranged by DevNJ, checked 17 November 2026)

9-2. What to check after installing

Open a private window and test. A settings screen saying "enabled" tells you nothing about real behaviour.

Check How Expected result
Cookies stored Developer tools, Application (Cookies) No unexpected cookies; record any that appear
External requests Network panel, look at destinations Only expected domains; none on pages without a form
Normal submission Fill in and send It arrives
Honeypot filled Put a value in the field Quarantined
Screen reader and keyboard Tab from first field to submit Never stuck on the widget
Failure message Cut the connection and send A clear message for the visitor

The easy one to miss is keyboard-only use. If the widget steals focus or the submit button is unreachable, the spam protection starts blocking enquiries.

9-3. Catching false positives

Review the quarantine weekly and record three things: the count, whether any were genuine, and the reason each was flagged. If even one was genuine, study its type (for example a short English message, or a VPN user) and adjust.

10. After arrival, leave it to triage

This article covered stopping messages before they arrive, but some will always get through, above all hand-typed sales pitches.

The post-arrival system is described in enquiry triage automation: intake, auto-reply, classification, owners, deadlines and when a person steps in. The division of labour:

Item This article Triage article
Automated bot posts Stop them (layers 1-3) Quarantine what slips through
Human sales pitches Cannot be stopped Classify as sales or proposals
Genuine enquiries Let them through Assign owner and deadline
False positives Catch in quarantine Notify on overdue

Do not assume sales messages are disposable, because some are real supplier offers. For privacy, record what each field collects and how long it is kept in your notice, in the same spirit as Google Fonts and GDPR and comparing cookie consent tools.

11. Where it goes wrong

These are the failures that happen in practice, and none shows up from looking at a settings screen.

11-1. Common failures

Failure What happens How to prevent it
Widget without verification Forged tokens walk through Always validate on the server
Script on every page More traffic and more to explain Load on form pages only
Honeypot read by screen readers Assistive-tech users flagged as spam aria-hidden and tabindex="-1"
Discarding flagged posts Genuine enquiries vanish Quarantine and review weekly
Image CAPTCHA only Some people cannot use it Choose non-interactive methods
No privacy notice entry Cannot explain the processing List services and data sent
Stale keys Protection stops working Subscribe to update notices

Most failures come from missing checks, not wrong settings.

11-2. What not to do

Do not Why
Decide "no consent needed" from the vendor's words alone Consent depends on real behaviour
Close the form to stop spam You lose the front door for real enquiries
Tell visitors exactly why they were blocked It hands attackers a clue
Rely on a CAPTCHA alone It does not handle humans or false positives
Put the secret key in the page Anyone can read it and verification is pointless

12. What to write in your privacy notice

If you use an external service, tell visitors in your privacy notice. Google's FAQ likewise asks you to check that disclosures cover the purpose of processing.

Item Example
Purpose Protecting the form from automated submissions
Service used Service name and provider
Data sent IP address, browser details (as in the provider's documents)
Cookies Name and purpose if any are stored
Transfers Basis if data leaves the EU
Retention Your period, and the provider's (or that it is not stated)

Where a provider states no retention period, say so plainly or confirm it in the contract. Writing as though you know is the greater risk.

13. Checklist

Check these before and after installing.

  • Layer 1 (hidden field, time-to-submit, rate limits) is in place
  • Consent and data handling of any external service were checked in its documents
  • Validation happens on the server, not only in the widget
  • The secret key is not exposed to the browser
  • The script loads only on pages with a form
  • The honeypot is hidden from screen readers and Tab
  • Cookies and requests were checked in developer tools
  • A keyboard-only user can reach submit
  • Flagged submissions are quarantined, not discarded
  • Quarantine is reviewed weekly
  • The privacy notice lists the service and the data sent
  • Post-arrival classification and deadlines are decided

14. Summary

  • Forms receive bots, human sales pitches and genuine enquiries. A CAPTCHA can only stop the bots.
  • Build in layers. Start with a hidden field, a time check and rate limits that send nothing out.
  • Since April 2026 Google is a processor for reCAPTCHA, which puts more explanation on the site. It is not unusable, but it needs work.
  • CNIL splits consent on whether the provider reuses the data. For every option, check cookies and requests yourself after installing.
  • Image CAPTCHAs are a WCAG 1.1.1 and W3C concern; the EAA covers only specific consumer services.
  • A widget alone does not protect a form. Server-side validation is the protection.
  • Hand-typed sales messages you cannot stop go to post-arrival triage.

If you want the form's spam protection, consent wording and triage reviewed together for a European site, the services page shows how we work. To start from your current setup, get in touch. Knowing which plugin you use and what kind of spam arrives is enough to decide which layer to add first.

Sources used

Vendor documentation

WordPress plugins

Accessibility and regulators

Google, Cloudflare and Friendly Captcha documentation and the Official Journal notice were re-checked on 17 November 2026. The rest (W3C, CNIL, EDPB, AP, ACM and the WordPress plugin documentation) was checked on 6 November 2026. Prices, limits and supported versions change, so confirm them on each vendor's page before committing. This article is not legal advice.

FAQ

Can I use reCAPTCHA on a contact form under the GDPR?
It is not ruled out, but it needs work. From 2 April 2026 Google moved reCAPTCHA to a processor role, so the site owner is now the controller. Whether cookie consent is needed is unsettled: France's CNIL says consent is required when the provider reuses data for its own purposes, and Google's FAQ does not address consent. Decide per site and document it in your privacy notice.
Is there a spam defence that needs no consent banner?
The ones most likely to need no consent run entirely on your own site: a hidden honeypot field, a minimum time-to-submit check and rate limiting. They send nothing to a third party and set no cookies. Turnstile and Friendly Captcha describe their own processing as minimal or cookie-free, but after installing either one, check the cookies and network requests in your own browser.
Are CAPTCHAs an accessibility problem?
Image-selection CAPTCHAs are the usual culprit. W3C says the task itself excludes many people with disabilities. WCAG 2.2 criterion 1.1.1 (Level A) asks for a description of the CAPTCHA's purpose and an alternative for a different sense. The European Accessibility Act covers specific consumer services, so a B2B brochure site often falls outside it, but a webshop form is squarely a concern.
How do I set this up in Contact Form 7 and Gravity Forms?
In Contact Form 7, add the reCAPTCHA or Turnstile keys under Contact > Integration. In Gravity Forms, switch on the Advanced Honeypot in the form's spam settings and add the reCAPTCHA or Turnstile add-on if needed. Whichever you pick, load the script only on pages with a form and test both a normal submission and a blocked one.
Can I use Turnstile on a static site?
Yes, but server-side validation is mandatory. Cloudflare says the widget alone does not protect a form: your backend must call Siteverify. Tokens expire after 5 minutes and work once. On a static site, point the form at a small serverless function that validates the token before sending the email.
What about sales pitches that still arrive after I add spam protection?
Sales messages typed by a person pass any CAPTCHA. Do not try to block them at the form; classify them after arrival as sales or proposals and send them to a queue without a deadline. Some are genuine supplier offers, so auto-deleting is risky. Building that triage is covered in our article on enquiry triage automation.

Planning a site that has to work in both markets?

Get in touch

Related articles

Latest articles

All articles

Contents