CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a challenge-response test designed to distinguish human users from bots, commonly appearing as image puzzles, checkboxes, or logic questions before granting access to a page or action. Google describes reCAPTCHA as protecting sites from spam and abuse.
Many modern systems check visitors silently and show a puzzle only when something looks risky, so a CAPTCHA today is often a background risk check rather than a visible test.
How a CAPTCHA Works
- The page loads the CAPTCHA script: it shows a challenge, or runs checks in the background.
- The browser gets a token: after the check passes, the page receives a response token. For reCAPTCHA, it is submitted in the
g-recaptcha-responseform field. - The site verifies the token: the site's server sends the token to the provider's verification API, which says whether it succeeded.
- The site decides: it allows the action, asks for more proof or blocks it. reCAPTCHA tokens expire after two minutes and can be verified only once.
Types of CAPTCHA
- Text: distorted letters or numbers to type in.
- Image: pick the tiles that show a given object.
- Audio: listen to spoken characters and type them, as an alternative to visual tests.
- Checkbox: tick a box to pass.
- Score-based: reCAPTCHA v3 returns a score for each request without showing a challenge, from 1.0 (very likely a good interaction) to 0.0 (very likely a bot). Google suggests a starting threshold of 0.5.
- Managed: Cloudflare's Turnstile, in its recommended mode, decides whether to show a checkbox based on the visitor's risk level. It can also run in non-interactive or invisible modes. Invisible hCaptcha likewise presents a challenge only when a visitor meets its challenge criteria.
Visible Challenges vs. Background Checks
| Visible challenge | Background check | |
|---|---|---|
| What the visitor sees | A puzzle or checkbox | Usually nothing |
| When a puzzle appears | Every time | Only for some visitors, or never |
| What the site checks | A pass token | A token, and with reCAPTCHA v3 a score it compares with its own threshold |
| Examples | Image and text puzzles | reCAPTCHA v3, Turnstile in invisible mode |
Accessibility and AI Problems
A 2021 W3C note on CAPTCHA accessibility says these tests often prevent people with disabilities from completing a task, and calls audio CAPTCHAs a poor choice for users with cognitive disabilities. It also says current methods can be largely cracked by computer algorithms, citing a study with a 90% success rate against Google's audio reCAPTCHA. Its conclusion: there is still no single, ideal solution.
Proving You're Human Without a Puzzle
A newer approach lets a device vouch for the user instead. Privacy Pass, an IETF standard (RFC 9576), lets a user prove something, such as having passed a CAPTCHA, without revealing an identifier.
- Tokens: a user completes a check once and gets tokens to redeem later, without being tracked across requests.
- Apple devices: Apple's Private Access Tokens use this standard to reduce CAPTCHAs for iOS 16 and later on participating sites.
- Turnstile: Cloudflare uses Privacy Pass tokens as one signal when deciding whether to show a challenge.
What It Means for Web Scraping
- A CAPTCHA is a risk decision: score-based and managed systems show challenges when a visitor's signals look risky. Turnstile, for example, checks the browser environment and behavior, so a browser fingerprint that looks automated can trigger one.
- Solving one doesn't fix the cause: a CAPTCHA solving service gets you past one check, but the signals that triggered it are still there for the next request.
- Tokens are short-lived: a reCAPTCHA token lasts two minutes and works once, so it can't be stored and reused.