On this page
What this issue is
Cloudflare Turnstile and hCaptcha are bot checks. A small script from challenges.cloudflare.com or hcaptcha.com draws a widget in your form. When the visitor passes, the widget adds a hidden token. Your server then verifies that token before it accepts the form.
- Visitor opens pageForm is visible
- Captcha script loadsBlocked, wrong key or never rendered
- Token createdNo token
- Form acceptedSubmit fails or is rejected
- Lead in inbox/CRMNever arrives
The widget never loads, so no token is created and the submit fails.
Why it costs you leads or sales
A missing widget blocks the visitors who were ready to contact you. They click submit, see an error or nothing, and most leave. You get no email and no error report, so it can run for days. Paid traffic keeps arriving and you keep paying for clicks that cannot convert.
Example: a form that normally gets 40 leads a week drops to near zero after a Content Security Policy change blocks the captcha script.
How to check if your site has it
Open the form in a private window
Turn off extensions. Look for the widget or its placeholder where the form should show it.
Open DevTools Console
Press F12 and open Console. Look for messages like 'Refused to load the script' or 'Refused to frame', which point to a Content Security Policy block, or 'Invalid domain' or 'Invalid site key'.
Open the Network tab
Reload and filter for
turnstile,challenges.cloudflare.comorhcaptcha. The script should return status 200. Red or blocked rows are your cause.Inspect the form HTML
Look for an element with class
cf-turnstileorh-captchaand adata-sitekeyattribute. If it's missing, the widget isn't rendered.Submit the form
Check that a hidden field named
cf-turnstile-responseorh-captcha-responsehas a value before you submit.
| What you see | Likely cause |
|---|---|
| Console: Refused to load script | Content Security Policy missing the captcha domain |
| Widget area empty, no errors | Script delayed, deferred or removed by a caching or optimisation plugin |
| Widget shows an error code | Wrong site key, or domain not added to the widget settings |
| Works on desktop, fails for some users | Ad blocker, firewall or privacy tool blocking the script |
| Widget appears but submit still fails | Server-side secret key wrong, or token expired |
How to fix it
Start with the cause you found in DevTools. The most common are a Content Security Policy (CSP, a header that lists which domains may load scripts), an optimisation plugin that delays scripts, and a key or domain mismatch.
script-src https://challenges.cloudflare.com;
frame-src https://challenges.cloudflare.com;
connect-src https://challenges.cloudflare.com;script-src https://hcaptcha.com https://*.hcaptcha.com;
frame-src https://hcaptcha.com https://*.hcaptcha.com;
style-src https://hcaptcha.com https://*.hcaptcha.com;
connect-src https://hcaptcha.com https://*.hcaptcha.com;<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<form method="post" action="/contact">
<!-- your fields -->
<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY"></div>
<button type="submit">Send</button>
</form>Exclude the captcha script from optimisation
In your caching or speed plugin, turn off delay, defer or combine for
challenges.cloudflare.comorhcaptcha.com, then clear the cache. Settings names vary by plugin.Re-enter the keys
In your form plugin's captcha settings, paste the site key and secret key again from the Cloudflare or hCaptcha dashboard. Make sure there are no spaces.
Check security plugins
If a security plugin adds a CSP header, add the captcha domains to it.
Check the theme code
In Online Store, Themes, Edit code, confirm the captcha script and widget element are still in the form section after a theme update.
Check apps
Disable recently added form or script-delay apps one at a time and reload the form.
Check for a tag that loads the script
If you load the captcha through a Custom HTML tag, make sure its trigger fires on the form page and isn't blocked by a consent condition.
Preview and test
Use Preview mode to confirm the tag fires before the form is used.
Add the domain
In the Turnstile or hCaptcha dashboard, add both your custom domain and the
webflow.iostaging domain to the allowed hostnames.Check the embed
Make sure the script and widget are in an Embed element inside the form, then publish.
Check the captcha setting on the form
Open the form or survey builder and review its captcha option. If you embed the form with an iframe on another domain, test it on the live page.
Test on the live page
Load the page where the form is embedded, not only the builder preview.
Use the built-in option where possible
In the form's settings, check the spam protection option. Custom captcha scripts need Wix's custom code features, which may limit where they run.
Check Code Injection
If you added the captcha through Settings, Advanced, Code Injection, confirm the script is still there and on the right pages.
Update the CSP header
Add the captcha domains shown above to your server or CDN header, then reload and recheck the Console.
Match the hostname
Add every domain the form runs on (www, non-www, staging) to the widget's allowed hostnames.
Verify server side
Send the token and your secret key to the verification endpoint and handle failures with a clear error message, not a blank page.
How to confirm it's fixed
- The widget shows in a private window with extensions off
- The Console shows no CSP or invalid key errors
- The captcha script returns status 200 in the Network tab
- The hidden response field has a value before submit
- A test submission shows the success message
- The test lead arrives in your inbox and CRM
- It also works on mobile and in a second browser
How to prevent it happening again
- Retest the form after every theme, plugin, CSP or caching change
- Keep the captcha domains in your CSP when you edit security headers
- Add every new domain or subdomain to the widget's allowed hostnames
- Store keys in one place and note who owns the captcha account
- Run a scheduled test of the real form instead of waiting for a customer to complain
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your real form journey on a schedule from the EU or the US. If the step is blocked by bot protection or the submit fails, the check fails.
A failure is re-checked from a second region before one alert goes out, by email, Slack, Teams, WhatsApp, webhook or PagerDuty. The alert includes a screenshot and a likely cause. FunnelGuard never bypasses CAPTCHAs or bot protection, so a check that is stopped by the challenge is reported as it is. You may need to review your protection rules with that in mind. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my Cloudflare Turnstile widget not showing?
The most common causes are a Content Security Policy that doesn't allow challenges.cloudflare.com, a caching plugin that delays or removes the script, and a wrong site key or unlisted domain. Open the browser Console and Network tab to see which one applies.
Why is hCaptcha not loading on my form?
Usually the hcaptcha.com script is blocked by a CSP, an optimisation plugin or an ad blocker, or the site key doesn't match the domain. Check the Console for errors and confirm the script returns status 200.
How do I fix a Content Security Policy blocking Turnstile?
Add https://challenges.cloudflare.com to the script-src, frame-src and connect-src directives of your CSP header, then reload and check the Console. For hCaptcha, add hcaptcha.com and *.hcaptcha.com instead.
Why does the captcha work for me but not for my visitors?
Ad blockers, privacy extensions, corporate firewalls and cached pages can block the script for some visitors only. Test in a private window with extensions off, on mobile, and on another network.
Can a captcha that doesn't load stop all my form leads?
Yes. If the widget never produces a token, the form can't be submitted or the server rejects it. Visitors see an error or nothing, and you receive no notification.
How do I know if my captcha site key is wrong?
The widget usually shows an error code or the Console reports an invalid site key or domain. Compare the key in your page with the one in the Turnstile or hCaptcha dashboard and check that your hostname is allowed.
Can FunnelGuard tell me when my captcha stops working?
Yes, it detects when the form step is blocked by bot protection or the submit fails during a scheduled test of your real journey. It re-checks from a second region and sends one alert with a screenshot and a likely cause.
Related issues
- DLV-199reCAPTCHA keys invalid for the domain, every submit failsFix guide
- DLV-200reCAPTCHA v3 score threshold rejects real usersFix guide
- DLV-197Spam flooding the form, real leads buriedFix guide
- DLV-205WAF blocks form POST containing certain wordsFix guide
- DLV-203Spam filter (Akismet, CleanTalk) marks real leads as spam silentlyFix guide
- DLV-201Honeypot field autofilled by browsers, real leads discardedFix guide