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

  1. The widget loads. It requests a challenge for your site key from the ReCloud API.
  2. Proof-of-work. The visitor's browser solves a small cryptographic puzzle in a background worker. Higher-risk traffic receives harder challenges.
  3. Signals are evaluated. Device, network and behavior signals are scored on the server. Low-risk visitors receive a token.
  4. Your form is submitted. The token is placed in a hidden field named recloud-response.
  5. You verify the token. Your server calls the siteverify endpoint with your secret key. Each token is valid once and expires after five minutes.

Key concepts

TermDescription
Site keyPublic identifier used by the widget in your HTML. Safe to expose.
Secret keyPrivate key used by your server to verify tokens. Never put it in client-side code. It is shown once when created or rotated.
TokenA signed, single-use proof that a visitor passed verification. It is bound to the visitor's IP address.
ModeManaged, Invisible or Violent. Controls the widget visibility and the strictness of the checks.
Allowed domainsThe 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.

Next steps