CaptchaNo
Back to blog
deep-dives17 Oct 2026·13 min read

What Is a CAPTCHA Test? Challenge-Response Explained

DDishant Singh
deep-dives

A CAPTCHA test is a challenge-response check that tells people from bots. See real siteverify replies, how to spot which captcha it is, and fakes to avoid.

A CAPTCHA test is a challenge-response check a website runs to decide whether a request comes from a person or from software. The site issues a challenge, your browser sends back a response, and the site's server verifies that response before it lets the request through. The classic challenge is a box of distorted letters, but most CAPTCHAs today show no puzzle at all and grade the browser session instead. This guide explains the challenge-response loop, shows real verification responses we captured with Google's and Cloudflare's test keys, helps you work out which CAPTCHA you are looking at, and flags the fake ones that spread malware. To watch the loop on real widgets, open our live reCAPTCHA and Turnstile demo.

What is a CAPTCHA test?

A CAPTCHA is any automatically generated test that most human users can pass and current programs cannot. The name stands for "Completely Automated Public Turing test to tell Computers and Humans Apart". Luis von Ahn, Manuel Blum and John Langford, who coined it, stressed in Communications of the ACM (February 2004) that the test can be any task with those properties, not only an image of text.

Two words in the name matter. Completely automated means a computer both generates and grades the test, which is why it is sometimes called a reverse Turing test. Public means the method can be published: the protection comes from the task being hard for machines, not from a secret algorithm.

What is a CAPTCHA challenge response?

The challenge is what the site asks for, and the response is what your browser sends back to prove the challenge was completed. In modern systems the response is rarely your literal answer. It is a signed token the widget writes into a hidden form field when you pass. The site's server then sends that token to the CAPTCHA provider, which says whether it is genuine.

Yandex SmartCaptcha follows the same pattern with a hidden field named smart-token; our Yandex SmartCaptcha walkthrough shows where it appears and how the site validates it.

The full loop has three steps:

  1. Challenge. The page loads the provider's widget. It may show a puzzle, a checkbox, or nothing, and it collects signals about the browser and how the page is used.
  2. Response. When the widget is satisfied, it puts a token in a hidden field: g-recaptcha-response for Google reCAPTCHA, cf-turnstile-response for Cloudflare Turnstile. The form submits it with everything else.
  3. Verification. The site's server posts the token and its secret key to the provider's siteverify endpoint and acts on the answer. A widget without this server-side step protects nothing, because a bot can simply skip the widget.

Older text CAPTCHAs work the same way with a different response: the challenge is an image, the response is the characters you typed, and the server compares them with the answer it stored. Simple sums such as "7 + 3 = ?" follow the same pattern, as our guide to how math captchas work and where they fall short shows.

What is CAPTCHA verification? What the server actually checks

CAPTCHA verification is the server-to-server call that turns a token into a yes or no. For reCAPTCHA, Google's verification docs list the request (a secret, the response token and an optional remoteip) and a JSON reply with success, challenge_ts, hostname and optional error-codes. Each reCAPTCHA token is valid for two minutes and can be verified only once. Cloudflare's server-side validation docs give Turnstile tokens 300 seconds and single use, and note that reuse detection is eventually consistent across its network.

Real siteverify responses, captured on 13 November 2026

Both providers publish test keys that always pass or always fail, so you can see verification without a real challenge. We called both siteverify endpoints with those published keys on 13 November 2026 (UTC) and recorded the raw replies. Seven calls, no real tokens involved:

CallWhat came back
Turnstile, always-pass secret, dummy tokensuccess: true, hostname: "example.com", metadata.result_with_testing_key: true
Turnstile, always-fail secretsuccess: false, error-codes: ["invalid-input-response"]
Turnstile, "token already spent" secretsuccess: false, error-codes: ["timeout-or-duplicate"]
Turnstile, always-pass secret, no token sentsuccess: false, error-codes: ["missing-input-response"]
reCAPTCHA, test secret, token "anything"success: true, hostname: "testkey.google.com"
reCAPTCHA, test secret, no token sentsuccess: true, hostname: "testkey.google.com"
reCAPTCHA, made-up secret, token "anything"success: false, error-codes: ["invalid-input-response"]

Two results are worth knowing before you ship a form. First, Google's test secret said success: true even when the request carried no token at all, so a server that only checks success and accidentally keeps the test secret in production accepts every submission. Check hostname too: the test key always reports testkey.google.com, and Turnstile's test keys report example.com plus a result_with_testing_key flag. Second, a made-up reCAPTCHA secret came back as invalid-input-response rather than invalid-input-secret, so do not rely on the error code alone to spot a misconfigured key.

Cloudflare Turnstile testing docs table listing dummy sitekeys and secret keys that always pass, always fail or return a token-already-spent error
Cloudflare's published Turnstile test sitekeys and secret keys (docs last updated 5 November 2026, captured 13 November 2026).

Our guide to testing reCAPTCHA and Turnstile with test keys walks through wiring these into a test environment.

The main types of CAPTCHA in use today

There are five families in common use, and modern widgets often combine several. What changes between them is what the challenge asks and what the response contains.

TypeChallengeResponseWhere you see it
Text (image-to-text)Type distorted charactersThe typed textOlder sites, forums, government portals
Image selectionPick the tiles that show an objectA token after the grid is gradedreCAPTCHA v2 challenges
CheckboxTick "I'm not a robot"; a puzzle appears only if the check is unsureA tokenreCAPTCHA v2, Cloudflare Turnstile
Invisible / score-basedNothing visible; the session is scoredA token carrying a score or verdictreCAPTCHA v3, Turnstile non-interactive mode
Behavioural puzzleDrag a slider while motion is analysedA token or cookieDataDome, GeeTest

Audio versions exist alongside most visual tests so people who cannot see the images can still pass. For Google's family in particular, our explainer on what reCAPTCHA is and how v2, v3 and Enterprise differ covers each version in depth.

What is this CAPTCHA? How to tell which one you are seeing

You can usually identify a CAPTCHA from its logo and wording, and always from where its frame loads. We loaded Google's public reCAPTCHA demo and our own Turnstile demo in a headless browser on 13 November 2026 and recorded the frames and hidden fields each one created. That is the reliable fingerprint:

What you seeWhat it isFrame loads fromHidden response field
"I'm not a robot" checkbox with the reCAPTCHA logo, sometimes an image gridGoogle reCAPTCHA v2www.google.com/recaptcha/api2/anchor and /bframeg-recaptcha-response
Small "protected by reCAPTCHA" badge, no checkboxreCAPTCHA v3 or invisible v2www.google.com/recaptcha/g-recaptcha-response
"Verify you are human" box with the Cloudflare logoCloudflare Turnstilechallenges.cloudflare.comcf-turnstile-response
Full-page "Verifying you are human" before a site opensCloudflare challenge pagechallenges.cloudflare.comNone in the form; a clearance cookie is set
Slider or puzzle on a "please verify" pageOften DataDomeDataDome's captcha domainNone in the form; a cookie is set
Cloudflare Turnstile Verify you are human checkbox on the CaptchaNo captcha demo page, next to the server verification panel
A real Turnstile widget on our demo page; the token it produces goes into the hidden cf-turnstile-response field.

The full-page Cloudflare check is covered in what challenges.cloudflare.com is and whether it is safe, and the slider kind in what DataDome is and why it blocks scrapers. If Google itself shows a CAPTCHA with "Our systems have detected unusual traffic", that is a rate block on Search, explained in our guide to Google's unusual traffic page.

GeeTest's adaptive v4 widget, which picks a slide, icon or one-tap check per request, is explained in our GeeTest v4 captcha solver guide.

GeeTest's slide and click puzzles add one more step: the site hands out a single-use challenge from its own server first, which is why our guide to solving GeeTest v3 in Python starts at the register endpoint rather than the puzzle.

Fake CAPTCHAs: the one that asks you to run a command

A real CAPTCHA never asks you to open a dialog on your computer and paste something into it. Microsoft Threat Intelligence describes this lure, which it calls ClickFix, in an analysis published on 21 August 2025. A fake human-verification prompt tells the visitor to copy, paste and run a command in the Windows Run dialog, Windows Terminal or PowerShell, and the command installs malware such as the Lumma Stealer infostealer.

Microsoft Security blog paragraph explaining that ClickFix uses fake human verification and CAPTCHA checks to make users run commands in the Windows Run dialog
Microsoft's description of fake CAPTCHA lures (published 21 August 2025, captured 13 November 2026).

The rule is simple: real checks happen inside the browser tab. Any "verification" that mentions Win+R, Terminal, PowerShell or pasting a command is an attack, so close the tab without running anything.

How a CAPTCHA decides you are human

Modern CAPTCHAs decide mostly from signals rather than from your answer. Text puzzles grade the answer itself. Checkbox and invisible tests use machine learning models that grade the whole session: the browser environment, how the page was reached, the network address and how mouse or touch input moved. If those signals look like normal users and automated traffic patterns are absent, you pass without a puzzle. If they look automated, you get a harder challenge or a lower score.

Score-based systems such as reCAPTCHA v3 never block on their own. They return a score with each token and the site decides what to do with it. Cloudflare goes furthest: its challenge documentation says it does not use visual puzzles at all and relies on browser signals and, at most, a click.

A short history

CAPTCHAs went from text puzzles to invisible scoring in about twenty years. The term and the formal definition date from the early 2000s at Carnegie Mellon. reCAPTCHA began by using people's answers to digitise scanned books and was acquired by Google in 2009. As image recognition and optical character reading got better at distorted text, providers moved to image grids, then the checkbox, then score-only versions. Each step moved the test away from "solve this" and towards "behave like a person while we watch".

Why CAPTCHAs fail real people

Because the modern test grades the session, ordinary privacy and accessibility choices can look suspicious. The usual reasons a real person fails or loops:

  • a VPN or shared network address with a poor reputation;
  • blocked cookies or JavaScript, so a passed check is never remembered;
  • privacy extensions that change what the browser reports;
  • assistive technology or keyboard-only navigation that does not move like a mouse;
  • visual puzzles that are hard to see, with audio alternatives that are hard to hear.

The accessibility cost is the oldest criticism. A screen reader cannot describe a picture built to be unreadable by software, and the W3C's note "Inaccessibility of CAPTCHA" recommends non-interactive methods such as honeypots and heuristics first, with several alternative challenges where a visible one is unavoidable. That is a large part of why many site owners moved to invisible checks: a better user experience for most people, at the cost of failures that are harder to understand, because there is nothing visible to retry.

How QA teams and automation handle CAPTCHAs

For your own site, do not solve your own CAPTCHA in tests: use the provider's test keys from the table above, and keep them out of production. Then test the server, because that is where verification bugs hide. Missing tokens, reused tokens, expired tokens, wrong hostnames and a low reCAPTCHA v3 score each need a defined outcome. Our CAPTCHA test case checklist lists each case with an ID and an expected result.

For third-party sites you are authorised to automate, such as monitoring your own marketplace listings or running end-to-end tests against a partner's staging system, a solving API returns the token the real widget would have produced. Whether the site accepts it depends on the same session signals described above: submit it from the same IP and user agent, and well inside its lifetime. The common failure modes are in why valid captcha tokens get rejected. We break down what a captcha solver returns for each challenge type, from text answers to tokens and cookies.

How CaptchaNo fits in

CaptchaNo is a CAPTCHA solving API for that second case. One endpoint handles reCAPTCHA v2 and v3, Cloudflare Turnstile, DataDome and image-to-text CAPTCHAs on our own solving infrastructure. It returns the response token (or the text, for image captchas) and you submit it the way the page would. You are billed only for successful solves, failed solves are never charged, and credit does not expire. The request format for each type is in the captcha solver API reference, and questions go straight to the engineers who run the service at support@captchano.com. We do not solve hCaptcha or score-based reCAPTCHA Enterprise keys.

Frequently Asked Questions

What does CAPTCHA stand for?

CAPTCHA stands for "Completely Automated Public Turing test to tell Computers and Humans Apart". It is called automated because a computer creates and grades the test, and public because the method can be published without making it easier to defeat. The term was formalised by researchers at Carnegie Mellon in the early 2000s.

What is a CAPTCHA challenge response?

It is what your browser sends back after the challenge is completed. In modern CAPTCHAs it is a short-lived, single-use token placed in a hidden form field, such as g-recaptcha-response or cf-turnstile-response. The website's server sends that token to the provider to verify it, and only then accepts the form. In old text CAPTCHAs, the response is simply the characters you typed.

Is reCAPTCHA the same as CAPTCHA?

reCAPTCHA is one CAPTCHA product, made by Google, rather than a different idea. CAPTCHA is the general category of human-versus-bot tests. reCAPTCHA comes in several versions: v2 with the checkbox and image grids, an invisible v2, and v3, which shows nothing and returns a score that the website uses to decide what to do.

Why do I keep failing CAPTCHA tests?

Modern tests grade your session as much as your answer. A VPN, blocked cookies or JavaScript, aggressive privacy extensions and some assistive tools can all make an ordinary visit look automated. Trying without the VPN, allowing cookies for the site and disabling extensions usually fixes repeated failures, and the audio option helps if images are hard to read.

Is it safe to complete a CAPTCHA?

A genuine CAPTCHA that stays inside the web page is safe to complete: you tick a box, pick images or wait while it checks your browser. The dangerous kind is a fake verification that tells you to press keys that open a Run dialog, Terminal or PowerShell and paste a command. No real CAPTCHA asks for that, so close the page without running anything.

How do I test a form that has a CAPTCHA?

Use the provider's test configuration instead of solving the real challenge. Google publishes reCAPTCHA test keys that always pass and Cloudflare publishes Turnstile keys that always pass, always fail or simulate a spent token. Test the server's handling of missing, reused and expired tokens, check the hostname in each response, and make sure the test secret never reaches production.

Solve CAPTCHAs in your own automation

If your automation is authorised and a CAPTCHA keeps stopping it, try CaptchaNo free for seven days and test it on your own targets. Per-type rates are on the captcha solver pricing page.