Cloudflare Turnstile Website Integration
Reduce spam on enquiries, registrations and other public forms while keeping the success path usable.

Where Cloudflare Turnstile fits
Reduce spam on enquiries, registrations and other public forms while keeping the success path usable.
Connect it to your website
Render the widget on the page and send its token with the form to a backend or supported form integration. Verify the token server-side using Siteverify before accepting the action. A standalone Webflow embed is insufficient without a verification path.
A practical implementation
For a contact form, test valid submissions, missing and expired tokens, and retry after a failed attempt. Return a useful message and let visitors retry without losing their entire enquiry.
What to check before launch
Tokens expire and can only be redeemed once. Keep the secret server-side, validate the expected context and apply separate measures for application rate limits and input validation.
Implement the verification at the form boundary
The site key is public, but the secret belongs on the server. Send the submitted token to Siteverify and continue only if verification succeeds and the response matches the expected site context. Tokens are single-use and expire after five minutes. If a visitor spends longer filling in a form or a submission fails, reset or refresh the widget as appropriate and allow a retry.
Pair the challenge with a dependable form endpoint
An Astro endpoint or Cloudflare Worker can validate required fields, verify Turnstile, persist the enquiry and then send an acknowledgement. A Webflow implementation needs a form handler or integration that actually performs server-side validation. Test missing tokens, token reuse, expiration, network failure and keyboard navigation. Rate-limit abusive requests independently, and keep the form usable when email delivery is delayed.
Frequently asked questions
Does Turnstile replace rate limiting?
No. Use it alongside validation and appropriate limits for forms that are exposed to abuse.
Cloudflare Turnstile official documentation
What if the visitor cannot load the widget?
Show a clear error and an accessible retry or alternate contact path. Do not silently accept unverified submissions.
Can Turnstile be used without moving hosting or DNS to Cloudflare?
Yes. The widget and server-side verification can be integrated into a website hosted elsewhere. The backend must still verify every protected submission.