What is CAPTCHA, and what does it actually stop?

A CAPTCHA is a test a website shows to decide whether a visitor is a person or an automated program, usually before a sign-in, a sign-up or a form. The name stands for Completely Automated Public Turing test to tell Computers and Humans Apart. It raises the cost of automation, and it also costs every real visitor some time, and some visitors much more.

Section Bots Updated Stands for a Turing test, automated

Quick facts

Stands for
Completely Automated Public Turing test to tell Computers and Humans Apart
Origin
First developed by researchers at Carnegie Mellon University
Where it appears
Sign-in, sign-up, password reset, checkout and contact forms
What it slows
Automated form submission, account creation and repeated sign-in attempts
Who it hurts
People with visual, hearing and cognitive disabilities, and anyone on a small screen or a noisy line

The accessibility problems are documented by the W3C in Inaccessibility of CAPTCHA.

What the acronym means

A Turing test asks whether a machine can pass for a person. A CAPTCHA turns that around: it is run by a machine, it is public, and its aim is to catch the machines. The test is generated automatically, so every visitor can get a fresh one.

The idea rests on a gap between what people do easily and what programs did badly at the time the test was designed: reading distorted text, recognising objects in photos, or moving a pointer the way a hand does.

In plain terms, the CAPTCHA meaning comes down to one rule: a challenge that a person is expected to pass and a program is expected to fail. A CAPTCHA definition therefore describes a job, not a technology. Typical examples of CAPTCHA are a row of distorted characters to retype, a grid of photos where you select the ones showing a given object, a short audio clip to transcribe, a puzzle piece to slide into place, and a tick box labelled “I am not a robot”. Each example CAPTCHA asks the same question in a different way. The last kind, the are you human CAPTCHA, may be decided by how the visitor behaves rather than by the click itself.

How a CAPTCHA works

  1. The site decides when to ask. Always on a form, or only when something about the visitor looks automated.
  2. A challenge is generated. Distorted text, a set of images to select, an audio clip, a puzzle, or an invisible check that scores behaviour in the background.
  3. The answer is checked on the server. A correct answer, or a good enough score, lets the request through; a wrong one asks again or refuses.
  4. The result is tied to the request. So that a solved challenge cannot be reused for thousands of later submissions.

Invisible variants ask nothing unless the score is low; all the types side by side are on types of CAPTCHA. They save time for most visitors and move the decision into signals the visitor cannot see or contest. Checks that ask the visitor nothing at all, such as JavaScript challenges, proof of work and honeypot fields, are compared on CAPTCHA alternatives. When a check keeps failing for a real person, “Are you a robot?” lists what to try.

Where the answer is checked

How does a CAPTCHA work when it is built well? CAPTCHA verification happens on the server: the page sends the visitor's answer, and the server checks it before the request goes any further. A check made only in the browser proves nothing, because a script can post the form without ever loading the page. Whether the challenge comes from a hosted service or from a CAPTCHA generator library, that server-side step is the part to keep. How do CAPTCHAs work in short: a challenge is issued, an answer comes back, and the server decides.

Math CAPTCHA example

A math CAPTCHA, also called a numeric CAPTCHA or a CAPTCHA with numbers, asks a small sum such as “What is 7 + 5?” and expects 12 back. As a math CAPTCHA example, the server stores the sum in the visitor's session, shows the question, compares the reply with it, then deletes it so a correct answer cannot be sent twice.

A program solves a sum in one step, so arithmetic stops only scripts that never look at the form.

Other simple challenges

There are different types of CAPTCHA beyond arithmetic. A slider CAPTCHA asks the visitor to drag a piece into a gap, a rotate CAPTCHA to turn an image upright, and a 3D CAPTCHA to recognise or turn an object.

What does honeypot mean here? A honeypot, sometimes called a hidden CAPTCHA, is a form field that real visitors never see, so any value in it means a program filled the form.

WHAT EACH CHALLENGE TYPE GETS RIGHT EASY FOR MOST PEOPLE ACCESSIBLE TO ALL HARD FOR BOTS TODAY DISTORTED TEXT IMAGE SELECTION AUDIO CHALLENGE INVISIBLE SCORE // no column is fully filled by any type
// four challenge types, and no type that meets all three goals

What reCAPTCHA is

reCAPTCHA is Google's hosted CAPTCHA service. A site adds Google's script, Google runs the check in the browser, and the site's server asks Google whether the answer passed. What is meant by CAPTCHA is the idea; reCAPTCHA names one product built on it.

To define reCAPTCHA, call it a named Google service, not a kind of test. In a CAPTCHA vs reCAPTCHA comparison, the difference between CAPTCHA and reCAPTCHA is that one is the kind of test and the other a service that runs it. The system was created at Carnegie Mellon University by a team that included Luis von Ahn and Manuel Blum, and Google acquired it in September 2009. What does reCAPTCHA mean? The meaning of reCAPTCHA is one vendor's product, and a page protected by reCAPTCHA names that vendor.

reCAPTCHA v2 and v3

Google lists two web generations. Version 2 shows the “I'm not a robot” checkbox, or an invisible badge. The checkbox arrived in 2014 under the name no CAPTCHA reCAPTCHA.

Version 3 shows nothing. It verifies interactions without user input and returns a score for each action, where 1.0 is very likely a good interaction and 0.0 is very likely a bot.

In a reCAPTCHA v3 example, a sign-in page names the action login, and the server checks the returned score and action name before it continues, asks for a second step or refuses.

How reCAPTCHA works on a page

How does reCAPTCHA work on a page? The widget on a version 2 page is a div with the class g-recaptcha and the site key in a data-sitekey attribute. When the visitor passes, the form carries a token in the g-recaptcha-response field. The server posts that token and its secret key to Google's siteverify address and reads success or an error code.

To test, v3 needs a separate key, and v2 has published test keys that always pass.

When reCAPTCHA validation fails

A failed reCAPTCHA validation means the server's call to Google returned success false with an error code. A token is valid for two minutes and can be verified once.

Run the check on submit, not on page load, and verify each token once, requesting a new one per attempt. The hCaptcha developer guide says its tokens are single-use, which is what an invalid CAPTCHA token means in practice. Reports of "CAPTCHA not loading" or "CAPTCHA not showing" mean the widget never rendered, so no token reaches the form and the server check fails too; check that the provider's script was not blocked.

Problems with reCAPTCHA and alternatives

The problems with reCAPTCHA fall into four groups: privacy, accessibility, interface and dependence on Google Play Services on Android. On accessibility, Google's help center states that reCAPTCHA is not supported for the deafblind community. Version 2 also offers an audio challenge.

A reCAPTCHA alternative can be another hosted service, such as hCaptcha or Turnstile, which documents an invisible mode.

Why bots still get through

A CAPTCHA works only while solving it costs more than the attack is worth. That gap has narrowed. Software now reads distorted text and recognises images well, and paid services employ people to solve challenges cheaply.

So a CAPTCHA filters out the cheapest automation and slows the rest. It does not prove that the visitor is a person, and treating a solved challenge as proof leaves the next layer undefended.

A CAPTCHA bot is ordinary automation with a solver attached: the script fills the form, hands the challenge to software or to a paid human service, and submits the answer. Searches such as “how to bypass CAPTCHA” come from two groups, attackers and real visitors whom a broken challenge has locked out. This page does not teach bypass methods. For the defender the useful reading is the cost curve above: when solving gets cheap, the CAPTCHA stops paying for itself and another layer has to carry the load.

Content scrapers, described under web scraping, run into the same tests.

Invisible CAPTCHA and risk scores

Newer systems often show nothing at all. They watch how the page is used, score the visitor, and show a challenge only when the score is low. Most people never see a puzzle, which removes most of the cost for them.

The trade moves elsewhere. The decision now rests on signals the visitor cannot see or dispute, and a person who is scored wrongly has no way to understand why a form keeps failing. Privacy matters too: scoring behaviour means collecting it, and where that data goes depends on who runs the check.

What a CAPTCHA costs real visitors

The W3C note on CAPTCHA inaccessibility lists who is shut out: blind visitors using screen readers, people with low vision or dyslexia, deaf-blind people for whom the audio version does not help, people with cognitive disabilities who cannot solve puzzles under time pressure, and anyone who does not read the language the test assumes.

A CAPTCHA with audio, sometimes called a voice CAPTCHA, reads the characters aloud and is intended for blind visitors; as the W3C note says, it does not help deaf-blind visitors. Who each type locks out is compared under audio CAPTCHA and the other challenge types.

When a visitor sees “invalid CAPTCHA”, the server has rejected the answer. That can mean a mistyped answer, a challenge that expired while the form sat open, or a challenge that was already used once. Loading a fresh challenge is the first thing to try.

Everyone else pays in time and patience. Each challenge on a sign-up or a checkout is a point where some real visitors give up, and the site rarely learns how many.

Challenge design and the Google unusual traffic page

For CAPTCHA UX and CAPTCHA UI alike, a challenge costs less when it appears at the moment of the action, not on page entry. A failed answer should keep what the visitor typed, say what went wrong and offer a fresh challenge. A second route must exist for visitors the first one shuts out.

Google Search shows “Our systems have detected unusual traffic from your computer network” when a network, including a VPN, seems to send automated traffic to Google Search. Google's help page says the message most likely shows a reCAPTCHA, and after it is solved the message goes away.

When a CAPTCHA is worth using

Use it where a single action is cheap for an attacker and expensive for you, and only after other signals say the request is suspect. NIST's guidance on sign-in throttling, SP 800-63B section 5.2.2, lists a CAPTCHA as one of several ways to slow repeated attempts without locking real users out, alongside growing delays and risk-based checks.

Always offer an accessible alternative path, and measure how many people abandon the form; checks that ask people nothing are on CAPTCHA alternatives. For protecting sign-in specifically, see brute force attacks and credential stuffing.

Adding a CAPTCHA to a website

To add a CAPTCHA to a website, the same five steps apply to any provider.

  1. Choose the actions that need it, such as sign-up or a contact form.
  2. Add the provider's widget to those pages.
  3. Send its token or answer to your server with the form.
  4. Verify it once on the server, reject an expired or reused value, then process the request.
  5. Keep a route for visitors who cannot pass the test.

Such a check lets a site verify that a human submitted the form. A hosted service means the visitor's browser talks to the provider, so a GDPR compliant CAPTCHA depends on what data is collected, where it goes and the legal basis, not on the product name.

Questions

What does CAPTCHA stand for?

CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart.

Why do websites ask if I am a robot?

Because something about the request, or the form itself, is a common target for automation. The site uses a CAPTCHA to slow automated sign-ups, sign-ins or form spam, and every visitor sees it, not only suspected bots.

How does a CAPTCHA work?

The site issues a challenge, the visitor answers, and the server checks the answer before the request continues. Invisible variants replace the visible puzzle with a score.

What does an invalid CAPTCHA mean?

The server did not accept the answer. It may have been mistyped, the challenge may have expired while the form was open, or it may already have been used. Loading a fresh challenge is the first step.

Can bots solve CAPTCHAs?

Yes, many can. Software solves text and image challenges, and paid services use people to solve them cheaply. A CAPTCHA raises the cost of automation; it does not stop a determined attacker.

Are CAPTCHAs accessible?

Often not. The W3C documents barriers for blind, low-vision, deaf-blind and cognitively disabled users, and recommends offering alternatives rather than relying on a single test.

What is reCAPTCHA?

reCAPTCHA is Google's hosted CAPTCHA service. The site adds Google's script, Google runs the check in the browser, and the site's server verifies the result with Google. Version 2 shows a checkbox or an invisible badge; version 3 returns a score for each action.

What is the difference between CAPTCHA and reCAPTCHA?

CAPTCHA is the general kind of test that tells people from programs. reCAPTCHA is one product that runs such a test, and Google owns it. Other services and self-built challenges are CAPTCHAs without being reCAPTCHA.

Who invented CAPTCHA?

The term CAPTCHA was coined in 2003 by Luis von Ahn, Manuel Blum, Nicholas J. Hopper and John Langford.

What is a math CAPTCHA?

A math CAPTCHA asks a small sum, such as 7 + 5, and the server compares the reply with a stored answer. It is simple to build, and a program solves it instantly, so it slows only the crudest automation.

What does a failed reCAPTCHA validation mean?

Google's verification call returned an error. The token may be older than two minutes, may have been verified before, or may be malformed. Request a new token and verify it once.

Is there an alternative to reCAPTCHA?

Yes. Other hosted services such as hCaptcha and Turnstile run the same issue-and-verify flow. Checks that ask the visitor nothing, such as honeypot fields, avoid the challenge altogether.