SurSolver

BlogWhat Is a CAPTCHA? Types, How They Work, When They Fail

What Is a CAPTCHA? Types, How They Work, When They Fail

· Updated · 9 min read

A CAPTCHA is easy to misread because the part you see (a checkbox, a puzzle, nothing at all) is not where the decision is made. This guide separates the three families of check you meet when you automate a site, the widget, the browser challenge and the mobile sensor, shows where each family is decided, and lists the usual reasons a check that looks passed is still refused. You will be able to name what a page is running before you compare solutions.

What a CAPTCHA does

A CAPTCHA is a check a site puts in front of an action (a login, a signup, a checkout, sometimes the page itself) to decide whether a person or a script is on the other end. The browser side collects evidence: a click, a solved puzzle, a computed proof, or only background signals. The decision is made later on the site's server, which holds a secret key the browser never sees.

That split gives you two separate things that can go wrong. The browser side can fail to produce a result, or the server can refuse a result that looked fine. A solved widget is not an accepted request, and the rest of this guide keeps the two apart.

The challenge and verification flow

Widget-style CAPTCHAs (reCAPTCHA, Cloudflare Turnstile, Prosopo, CaptchaFox, MTCaptcha) share the same four steps:

  1. The page renders the widget with a public site key, usually in a data-sitekey attribute.
  2. The visitor, or only the visitor's browser, passes the check and the widget produces a token, a one-time string.
  3. The token is submitted with the form, typically in a hidden field, or handed to a JavaScript callback the page registered. Field names differ by vendor: g-recaptcha-response, cf-turnstile-response, procaptcha-response, cf-captcha-response, mtcaptcha-verifiedtoken.
  4. The site's server sends the token and its secret key to the vendor's verification endpoint (Google's siteverify, Cloudflare's https://challenges.cloudflare.com/turnstile/v0/siteverify, Prosopo's https://api.prosopo.io/siteverify, CaptchaFox's https://api.captchafox.com/siteverify, MTCaptcha's CheckToken API) and only processes the request if the answer is positive.

Altcha is the variation: the site issues the challenge itself and verifies the answer with one cheap cryptographic check, with no third-party call.

The site key is public and the secret is not. A solver therefore only reproduces the browser side; the site's own verification still decides.

The three families of check

Every product in this space belongs to one of three families, and the family decides what a solution looks like: a token for a form field, a cookie (or header) for the session, or a proof value for an app's own API calls.

Widget challenges: a token for a form

The widget family lives inside a page that loaded normally. The reCAPTCHA v2 checkbox ("I'm not a robot") can open an image grid. GeeTest serves slide, icon-click and other puzzles, chosen per visitor by risk analysis. MTCaptcha and CaptchaFox run background risk analysis first and show a visible challenge only to suspicious visitors: a text captcha for MTCaptcha, a slide puzzle, one-click confirmation or an audio fallback for CaptchaFox.

The reCAPTCHA v2 checkbox in a form, rendered with Google's published demo key

Invisible checks belong to the same family. reCAPTCHA v2 has an invisible mode: no checkbox, and the challenge fires when the visitor submits a form or clicks a button. reCAPTCHA v3 goes further and never shows a challenge. It observes the session and returns a score from 0.0 (bot) to 1.0 (human) for a named action such as login. Google's documentation suggests 0.5 as the default threshold, and what happens at a low score is the site's own logic; v3 blocks nothing by itself. Turnstile is configured per widget as managed, non-interactive or invisible.

Proof-of-work widgets ask the browser to compute instead of recognise pictures. With Altcha the server issues a challenge, the browser searches for a number in a Web Worker, and the server verifies the result. Friendly Captcha runs a cryptographic puzzle in the background with nothing to click. Prosopo works in tiers: a frictionless check, proof of work, and an image selection shown only to visitors who look suspicious.

Bot-management systems sit in front of the whole site instead of inside a form:

  • Cloudflare's challenge page ("Just a moment…", served with HTTP 403) ends in a cf_clearance cookie.
  • AWS WAF's challenge serves its own full-page check and ends in an aws-waf-token cookie.
  • Akamai Bot Manager runs a JavaScript sensor that posts sensor_data and validates the _abck cookie; its SBSD variant is a short interstitial in front of the page.
  • DataDome scores traffic silently and, on suspicion, blocks with a 403 and a slider or device check. The result is a datadome cookie.
  • PerimeterX (HUMAN) sets _px3 and may show "Press & Hold".
  • Vercel's Security Checkpoint is a full-page challenge in front of sites that use Vercel Firewall's Attack Mode.
  • Kasada signs protected requests with x-kpsdk-* headers its script computes.
  • Shape (F5) stamps x-<id>-* headers on protected calls from a site script.

The live Cloudflare "Just a moment…" interstitial served instead of the requested page

These produce cookies or headers instead of tokens, and each product binds its result differently. The Cloudflare challenge task requires a proxy, and its result is replayed through that proxy with the user agent supplied in the task. The Akamai, Kasada and Shape tasks run without a caller proxy, so their results are replayed from your own connection. The solver page of each product states which side its task sits on, so check it before you decide where a result may be replayed from.

Mobile sensor challenges: proof for an app's calls

Native apps do not load the protected site in a browser; they embed the vendor's mobile library and attach proof to the app's own API calls. Akamai BMP collects device signals into a sensor header for Android apps, and Castle issues device-integrity tokens for app traffic. A task in this family returns header or token values to attach to those calls. There is no widget to render and no page cookie to set, so the browser-automation habits from the first two families do not apply.

Recognise what is running

Every check has a solver page with the short version of its parameters and result. The table shows the family, how each check works, and which keys its solution contains.

Check Family How it checks Solution keys
reCAPTCHA v2 Widget Checkbox, invisible or Enterprise gRecaptchaResponse
reCAPTCHA v3 Widget Invisible score per action gRecaptchaResponse
Cloudflare Turnstile Widget Widget in the page, three modes token
FriendlyCaptcha Widget Background proof of work token
Altcha Widget Proof of work against the site's own challenge token
Prosopo Widget Tiers: frictionless, proof of work, image token
CaptchaFox Widget Behavioural scoring, challenge on suspicion token
GeeTest Widget Puzzles, v3 and v4 challenge, validate, seccode (v3); captcha_id, lot_number, pass_token, gen_time, captcha_output (v4)
MTCaptcha Widget Risk analysis, text challenge on suspicion token
Cloudflare Challenge Browser Full-page interstitial cf_clearance, __cf_bm, cookies
AWS WAF Challenge Browser Full-page challenge before the content aws-waf-token, cookies
Vercel Browser Security Checkpoint page _vcrcs, cookies
Akamai Browser JavaScript sensor, _abck cookie _abck, cookies
Akamai SBSD Browser Short interstitial before the page _abck, cookies
DataDome Browser Silent scoring, slider or device check datadome, cookies
PerimeterX Browser Silent scoring, "Press & Hold" _px3, cookies
Kasada Browser Script that signs protected requests with headers token, kpsdkCd, kpsdkH, kpsdkV, acceptLanguage
Shape Browser Script that stamps headers on protected calls token, cookies, acceptLanguage
Akamai BMP Mobile Android app sensor header header, version, deviceId, deviceManufacturer, deviceModel, osVersion
Castle Android Mobile Device integrity for an app's API calls token, clientId, deviceId, deviceModel

The keys are the public catalog's result keys for each task type. Every web task requires userAgent as an input, not a result key; replay with that same value. Native app task types do not require it.

Why a passed check can still fail

  • A used or old token. Tokens are single-use and short-lived: Google's documentation gives a reCAPTCHA token two minutes, Cloudflare's gives a Turnstile token 300 seconds. Verifying a token twice, or late, returns timeout-or-duplicate to the site. A redirect or a retry that re-sends the form is enough to redeem a token twice.
  • The wrong variant. A standard reCAPTCHA token fails on an Enterprise page and the other way round. Invisible v2 and v3 look alike on the page, a Turnstile widget and a Cloudflare challenge page are different products, and GeeTest v3 and v4 take different parameters. How to identify any CAPTCHA shows how to tell them apart.
  • A mismatched action. A v3 token carries the action it was made for, and the site's verification echoes it back, so a server that checks it rejects a token made for another action. Turnstile's action and cData work the same way when the widget declares them.
  • A score below the site's threshold. A v3 token can be genuine and still be refused because the score is lower than the site wants.
  • A different context. CaptchaFox reports invalid-ip-match when the submitting IP differs from the solving IP. MTCaptcha tokens carry the hostname and IP they were issued for. A Prosopo site that uses session correlation ties tokens to its own session id.
  • The wrong family. A token cannot clear a browser challenge: a login that answers 403 "Just a moment…" needs the challenge page solved, not a Turnstile task, and a mobile endpoint expects sensor proof, not a form field.

Name the family, then the check

Diagnosis comes before any task: fetch the blocked URL, look at what the response carries (a widget and a sitekey, an interstitial and its cookies, or nothing visible at all), and place it in a family with the table above. From there, the solver page of the check carries its parameters, its result keys and its replay rules.

Delivering the result to the target has its own guide: how to submit a CAPTCHA token covers form fields, callbacks and cookies, and solving CAPTCHAs in web scraping with Python covers the HTTP-client side of a session.

More articles