CAPTCHA alternatives: stopping bots without testing people
Every CAPTCHA asks real people to prove something, and some of them cannot. CAPTCHA alternatives move the check away from the person: to the browser, to the form, to the rate of attempts, or to what is submitted. None is perfect, but several together often stop as much automation as a puzzle while costing visitors nothing at all.
Quick facts
- Why look for alternatives
- Visual and audio tests exclude people; the W3C documents who
- Main alternatives
- JavaScript challenge, proof of work, honeypot field, rate limits, verification by email or phone, risk scoring
- What they share
- They ask the visitor nothing, or ask only when other signals point to automation
- What none of them prove
- That the visitor is a person; they make automation more expensive
- Best results
- Several cheap checks combined, each tuned to the action it protects
What a CAPTCHA is and its forms are on CAPTCHA and types of CAPTCHA.
CAPTCHA alternatives compared
| Alternative | How it works | Stops | Costs real people |
|---|---|---|---|
| JavaScript challenge | The browser must run a script and return the result | Simple scripts that do not run JavaScript | Visitors with scripts disabled; a short delay |
| Proof of work | The browser solves a small computing puzzle | Automation at scale, by making each attempt cost CPU | Battery and time on slow devices |
| Honeypot field | A hidden field only bots fill in | Bots that fill every field | Nothing, if hidden from screen readers too |
| Rate limits | Attempts per account, address or session are capped | Brute force, stuffing and spam at volume | Shared networks, if limits are tight |
| Email or phone verification | A link or code must be received | Mass sign-ups with fake contact details | A step and a wait; no access without the channel |
| Risk scoring | Signals are scored and only risky visits are checked | Depends on the signals | Unexplained refusals for unusual setups |
The right column is what to weigh. An alternative that stops slightly less automation but excludes nobody is often the better choice.
The tick box and the checks behind it are explained for visitors under I'm not a robot.
Alternative CAPTCHA: another test, or no test
An alternative CAPTCHA is either a different test in the same place or a replacement for the test altogether, and the two differ in what they ask of a person.
| Another test in the same place | No test | |
|---|---|---|
| Examples | A tick box, an invisible check, a puzzle from another provider | Honeypot field, rate limit, JavaScript challenge, proof of work, email verification |
| Fails for | Anyone who cannot solve the test it finally shows | People without the script, channel or device speed the check needs |
Accessible authentication: what WCAG 2.2 says
On a sign-in form the choice is not only taste. WCAG 2.2 success criterion 3.3.8, Accessible Authentication (Minimum), at level AA, says a cognitive function test, such as remembering a password or solving a puzzle, is not required for any step in an authentication process unless that step provides an alternative, a mechanism to assist, object recognition or personal content. The W3C's explanation adds that an audio version of a text CAPTCHA, if the visitor must transcribe it, cannot serve as the alternative. For a sign-in form, a puzzle-style alternative CAPTCHA needs one of those exceptions; a honeypot field or rate limit sets no such test.
JavaScript challenges
A JavaScript challenge sends the browser a small script whose result must come back before the page or action proceeds. Real browsers do it in the background; scripts that only send HTTP requests fail.
Automation built on full browsers passes it, so it removes the cheapest bots, not the determined ones. It also fails for people who block scripts, which should lead to an alternative path, not a dead end.
Proof of work and honeypots
Proof of work asks the browser to find a value with a property that takes measurable computing time to find and almost none to check. One attempt costs a fraction of a second; a million attempts cost real money. It is invisible to people, though slower on old phones.
A honeypot is a form field hidden from people. Bots that fill every field reveal themselves. It costs nothing and stops only naive bots, which on many sites are most of the spam; see spam bots.
Accessibility: who each alternative leaves out
The W3C note on the inaccessibility of CAPTCHA explains why visual and audio puzzles shut out people with visual, hearing and cognitive disabilities. Alternatives that ask nothing remove most of that problem, but each has its own edge cases.
A honeypot field must be hidden from screen readers as well as from sight, or a blind visitor may fill it in and be refused. A JavaScript challenge fails for people using text browsers or strict script blocking. Proof of work makes old and low-power devices wait longer. Email or phone verification excludes people without that channel. Every check needs a way through for a real person who fails it.
Choosing the best CAPTCHA alternative
- Name the threat for each form. Sign-up spam, credential stuffing and carding need different checks; the OWASP Automated Threats list helps name them.
- Start with what asks nothing. Honeypot fields and rate limits on the action.
- Add a browser check where needed. A JavaScript challenge or proof of work for actions worth automating.
- Keep a human-friendly fallback. Email verification or support contact, never a dead end.
- Measure both sides. Automation stopped, and real people who gave up.
Combining alternatives on one form
A sign-up form might use three layers: a honeypot field that silently drops naive bots, a rate limit per address and per email domain that stops volume, and email verification before the account can do anything that matters. None of the three asks a real person to solve anything.
A sign-in form needs different layers, because the threat is credential stuffing rather than spam: limits across accounts, checks against known leaked passwords, and multi-factor authentication. Matching the layers to the form is what makes alternatives work better than a single puzzle on every page.
Questions
What are alternatives to CAPTCHA?
JavaScript challenges, proof of work, honeypot fields, rate limits, email or phone verification, and risk scoring that checks only suspicious visits.
What is a JavaScript challenge?
A JavaScript challenge requires the browser to run a script and return its result before continuing, which stops simple bots that do not execute JavaScript.
What is the best CAPTCHA alternative?
There is no single best one. Combining a honeypot field and rate limits on the action, with a browser check for valuable actions, stops most automation without asking people anything.
What is an alternative CAPTCHA?
An alternative CAPTCHA is either a different test in the same place, such as a tick box or invisible check, or a replacement for the test: a honeypot field, rate limit, JavaScript challenge, proof of work or email verification. The second kind asks real visitors nothing.
What does the W3C say about CAPTCHA on sign-in forms?
WCAG 2.2 criterion 3.3.8 (level AA) says a cognitive function test, such as solving a puzzle, is not required in an authentication step unless it provides an alternative, a mechanism to assist, object recognition or personal content.