Sites and domains

A site is one sitekey/secret pair with its own domain allowlist, challenge settings and usage counters. Manage sites at /en/sites; see traffic at /en/dashboard and /en/analytics.

Keys

  • Sitekey (pk_...) is public and goes in your HTML.
  • Secret (sk_...) is private and is only ever sent from your server to /siteverify.

Rotating the secret in the dashboard invalidates the old one immediately — any /siteverify call still using it starts failing at once. Deploy the new secret first, then rotate.

The domain allowlist

Every challenge request carries the browser's Origin header, which page JavaScript cannot forge. The hostname is matched against the site's allowlist:

Entry Matches
(empty list) any origin — the unconfigured state, so a first integration works
example.com example.com only
*.example.com example.com and any subdomain of it

Matching is on hostname only: scheme and port are ignored, and a leading dot is stripped, so .example.com and example.com are the same entry. A request from a host that is not covered gets invalid-input-origin and no challenge.

The same list drives the widget iframes' frame-ancestors policy, so once it is populated only your own pages can embed the widget. Add your hostnames as soon as your integration works.

Challenge types

Puzzle selection is server-side. A client can never ask for a specific type — that would let a bot always pick the cheapest one.

Type Task Keyboard-operable
slider drag a piece into the gap no
rotate rotate an image upright no
pick click the named shape no
powonly no visual task; proof of work only yes

You can restrict a site to a subset in the dashboard. If the pool for the chosen type is momentarily empty the server falls back through the remaining types, ending at powonly, which needs no pre-rendered image and therefore can never fail.

Difficulty floor (1–5) sets the minimum puzzle difficulty for the site. The actual difficulty is that floor or higher, raised by the risk score of the requesting client.

Accessibility is on per site by default: the badge offers a non-visual path, and a request for it is served as powonly. Turning it off hides the affordance and makes the server refuse an accessible=1 request for that site — a site that has opted out cannot be coerced into the non-visual path.

Usage and quota

Four counters are recorded per site and per day: served, solved, failed and verified. Billing follows verified — a successful redemption at /siteverify.

Your plan carries a monthly verification allowance. Past it, verifications spend credits. When a site has exhausted both its quota and its credits, the server stops issuing challenges: /api/v1/challenge answers with "unavailable": true and the error code quota-exhausted. The widget then shows a quiet unavailable state instead of an error, so the host page keeps working and no visitor is handed a puzzle that would be rejected anyway.