Skip to content

AceCaptcha docs

AceCaptcha is a hosted bot check for your forms and sign-ins. Your page gets a single-use token, your backend redeems it, and the answer is a decision: let them in, let them in with limits, or block them.

How it works

  1. 01Your pageruns the check
  2. 02Tokensingle-use, expires in 5 minutes
  3. 03Your backendgets it with the form
  4. 04Siteverifytoken + your secret
  5. 05Decisionallowallow_limitedblock
Your page asks, your backend redeems, and the answer is a decision. The secret never leaves your server.
  1. Your page loads the AceCaptcha client and places the check in a form. It runs when the visitor uses the form.
  2. The check gives your page a single-use token.
  3. The token goes to your own backend with the form or request.
  4. Your backend POSTs the token with your site’s secret to siteverify and acts on decision: allow, allow_limited or block.

Tokens expire 5 minutes after they’re issued and work once.

What it catches

AceCaptcha stops the bots that pass as people: automation frameworks, DevTools-driven fleets and anti-detect browsers. It’s a reputation check: devices are judged over time, on hundreds of signals, and anti-detect browser profiles get unmasked. What it looks at stays private.

What visitors see

Most real visitors see nothing: the check runs in the background. In enforce mode, when a check isn’t clean, a short visible check can appear where you placed it, and solving it lets the visitor through. See the visible check.

The answer is a decision

Siteverify tells your backend what to do with the request: allow it, allow_limited (proceed with tighter limits) or block it.

Important

Act on decision, not on success

success: true only means the token is genuine, unexpired and unused. A handler that checks only success lets blocked bots through. See Siteverify.

Sitekey and secret

Each site you create in the dashboard has two keys:

  • a sitekey, ace_site_ followed by 22 letters and digits. It’s public and goes in your page;
  • a secret, ace_secret_ followed by 43 letters and digits. It stays on your server and is shown once.

Sites also set their hostnames, a mode and a protection level. See Sites and keys.

Where to start