Introduction
ReCloud Turnstile is a privacy-first bot protection service. It verifies that a visitor is a real person without asking them to solve a puzzle.
How it works
- The widget loads. It requests a challenge for your site key from the ReCloud API.
- Proof-of-work. The visitor's browser solves a small cryptographic puzzle in a background worker. Higher-risk traffic receives harder challenges.
- Signals are evaluated. Device, network and behavior signals are scored on the server. Low-risk visitors receive a token.
- Your form is submitted. The token is placed in a hidden field named
recloud-response. - You verify the token. Your server calls the
siteverifyendpoint with your secret key. Each token is valid once and expires after five minutes.
Key concepts
| Term | Description |
|---|---|
Site key | Public identifier used by the widget in your HTML. Safe to expose. |
Secret key | Private key used by your server to verify tokens. Never put it in client-side code. It is shown once when created or rotated. |
Token | A signed, single-use proof that a visitor passed verification. It is bound to the visitor's IP address. |
Mode | Managed, Invisible or Violent. Controls the widget visibility and the strictness of the checks. |
Allowed domains | The domains where your site key may be used. Subdomains are included automatically. |
HTTPS required. The widget uses the browser's Web Crypto API, which is only available on secure origins. Use HTTPS in production.
localhost also works for development.