Skip to content
ArticleBeginner

Protect your forms

Protect login, signup and contact forms with Cloudflare Turnstile: add the widget to your form and verify its token server-side with Siteverify.

Last updated
May 5, 2026
Read the original

Turnstile is Cloudflare’s privacy-friendly CAPTCHA alternative. Add the widget on the client, then verify the token it produces on your server with the Siteverify API before accepting the form.

What you’ll learn

  • Get a Turnstile site key and secret key
  • Add the widget to an HTML form
  • Verify the token on the server side
  • Important considerations for production

Cloudflare products used

Turnstile.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

Keep learning