Cloudflare Turnstile
APICAPTCHA alternative that checks visitors are human, verified server-side
- Erişim
- Widget secret key
Hakkında
Free Cloudflare widget that checks a visitor is human, usually without a puzzle, plus a siteverify API that validates its tokens on your server. It works on any site without routing traffic through Cloudflare; the free plan allows up to 20 widgets.
Neler yapabilirsin
- Protect sign-up, login and contact forms from bots without a visual CAPTCHA
- Validate widget tokens on your server with the siteverify API before accepting a form
- Replace reCAPTCHA or hCaptcha with a privacy-preserving challenge
Başlarken
- Create a widget in the Cloudflare dashboard to get a sitekey and secret
- Add the Turnstile script and a cf-turnstile div with your sitekey to the form
- Verify each submitted token from your server with siteverify
Örnek kod
# Documented test secret and dummy token; use your widget's secret in production
curl -X POST https://challenges.cloudflare.com/turnstile/v0/siteverify \
-d secret=1x0000000000000000000000000000000AA \
-d response=XXXX.DUMMY.TOKEN.XXXXAyrıntılar
- Barındırma
- Hazır hizmet (bulut)
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- JavaScript/TypeScript, Python, Go
- MCP sunucusu
- Uzak sunucu