Vezi pagina în română

IT Glossary

CAPTCHA (the “I’m not a robot” test): what it is and how it works

The “I’m not a robot” test on forms: an automatic filter that tells humans from programs and stops spam before it reaches your inbox.

7
sections
7
questions answered

CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is the automatic test a website uses to check whether a form is being filled in by a person or by a program, before it accepts the message. You meet it on contact forms, when creating accounts, at login (where it slows attacks using stolen password lists) and when buying tickets or orders, where scripts would empty the stock in seconds. The term was introduced in 2003, in a paper presented at the Eurocrypt conference by researchers from Carnegie Mellon and IBM.

If your contact form delivers daily offers of SEO services and messages full of suspicious links, you have already met the problem it solves: bots that fill in any form they find on the internet. Current versions such as reCAPTCHA v3 and Cloudflare Turnstile have learned the commercial lesson: they analyse behaviour in the background and ask nothing of most visitors, because every puzzle handed to a genuine customer costs conversions. For a company site, the right balance is invisible protection plus complementary measures such as honeypot fields and rate limiting, with a visible challenge only for suspicious traffic.

Why it matters for your business

A clean inbox with real enquiries

Automated spam is stopped at source, so the sales team no longer sifts through rubbish looking for actual prospects.

Account attacks slowed down

Automated login attempts with stolen passwords become slow and expensive for the attacker — one more barrier alongside two-factor authentication.

Protection without losing customers

Modern invisible variants filter bots without asking genuine customers to identify fire hydrants — security with the conversion rate intact.

How a CAPTCHA works

The form shows a widget from the provider. When the visitor passes the test (or the browser passes it for them, in the invisible variants), the widget receives a token from the provider and sends it along with the form. The site’s server must not trust it: it sends the token to the provider (a step called siteverify), together with the secret key, and gets back a valid or invalid answer.

The token is single-use and expires quickly: two minutes for reCAPTCHA, 300 seconds (5 minutes) for Cloudflare Turnstile. reCAPTCHA v3 shows no challenge at all and returns a score between 0.0 and 1.0 (1.0 means very likely a good interaction, 0.0 very likely a bot), and Google’s documentation suggests 0.5 as the default threshold. If the server skips the token check, the widget protects nothing: Cloudflare warns that an attacker can submit any string to the form without completing a challenge.

Types of CAPTCHA

The best-known types are distorted text (letters you transcribe), images (you pick the pictures with traffic lights, crossings or buses), audio (a recording you transcribe, for people who cannot see the image) and the reCAPTCHA v2 “I’m not a robot” checkbox, which sometimes adds an image grid.

Newer variants stop asking questions: reCAPTCHA v3 scores visitors in the background, and Cloudflare Turnstile has three modes (managed, non-interactive and invisible), chosen by the site. hCaptcha is another service of the same kind. On an iPhone, the automatic verification feature in iCloud lets the phone skip many challenges at sign-in; you find it under Settings, your name, Sign-In & Security.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

CAPTCHA, reCAPTCHA and Turnstile compared

CAPTCHA is the test in general. reCAPTCHA is Google’s service, in v2 (the checkbox) and v3 (the score) versions, now moved into Google Cloud. It is free up to 10,000 assessments per month for an organization; above that, without billing enabled, verification requests receive a 429 error and the forms that depend on them stop working until the first day of the next month. For a busy shop that is a business risk, not a technical detail. New classic keys can no longer be created.

Turnstile is Cloudflare’s service. The free plan has unlimited challenges (up to 20 widgets, 10 hostnames per widget) and works without moving your site to Cloudflare’s CDN. Cloudflare states that it processes only the data strictly necessary for the security function; that is the vendor’s statement, not a GDPR compliance confirmation, which you establish in your own processing documentation.

CAPTCHA code not valid: causes and fixes

As a visitor, the most common cause is a form left open too long: the token expired (2 or 5 minutes) or was already used. Reload the page and submit again. If the message returns, check that JavaScript and cookies are enabled, switch off extensions and ad blockers, turn off a VPN or proxy, and try another browser or mobile data.

As a site owner, three causes stand apart by the message. “ERROR for site owner: Invalid key type” means the key type does not match the code (a v2 key with v3 code, or the reverse). “Invalid domain for site key” means the site’s domain is not on the key’s domain list. If visitors see “code not valid” with no error in the widget, the server-side check is failing: the token expired or was already verified (`timeout-or-duplicate`; a reCAPTCHA token is valid for 2 minutes and verified once) or the secret key is wrong (`invalid-input-secret`).

CAPTCHA and accessibility

A visual test excludes people who cannot see the image. WCAG 2.2 (a W3C Recommendation of 12 December 2024) requires a CAPTCHA to have a text alternative stating its purpose and alternative forms for different senses (success criterion 1.1.1). On authentication pages, criterion 3.3.8, level AA, excepts an object-recognition CAPTCHA (picking images) but not a text-transcription one, which needs an alternative that involves no cognitive test.

The practical rule: for login prefer invisible or score-based checks, or an alternative (passkey, emailed link), never a text-only puzzle. For form spam, combine CAPTCHA with a honeypot field and rate limiting; the steps are described in the guide on stopping spam in the contact form.

Frequently asked questions

What does CAPTCHA stand for?

CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart. A website uses it to stop programs from filling in forms or creating accounts, by checking that a real person is on the other side.

What does reCAPTCHA mean?

reCAPTCHA is Google’s CAPTCHA service: v2 shows the “I’m not a robot” checkbox, while v3 scores visitors in the background from 0.0 to 1.0. It is free up to 10,000 assessments per month per organization; above that, without billing, verification fails.

How do you complete a CAPTCHA?

You follow what the widget asks: tick the box, pick the requested images or transcribe the text. With reCAPTCHA v3 you do nothing, because the check is invisible. If the test keeps returning, reload the page; on an iPhone, iCloud automatic verification skips many challenges.

Why does “CAPTCHA code not valid” appear?

Most often the token expired (2 minutes for reCAPTCHA, 5 for Turnstile) or was already used, so reload the page and submit again. Other causes: blocked JavaScript or cookies, a browser extension, a VPN or a proxy.

Will a CAPTCHA drive customers away from my site?

The old puzzle-based ones, yes — every extra step costs conversions. Modern invisible ones check in the background and only show a challenge on suspicious behaviour. If your site still asks everyone to click on traffic lights, it is due an update.

I still get spam despite having a CAPTCHA — how?

Most often the server does not verify the token: without that check, bots post straight to the form address. Some spam also comes from paid humans. The answer is server-side verification on every submission, honeypot fields, rate limiting and content filtering.

Which CAPTCHA should I choose for a company website?

For most sites: Cloudflare Turnstile (free plan with unlimited challenges) or reCAPTCHA v3 (free only up to 10,000 assessments per month per organization). Cloudflare says it processes only strictly necessary data; still check your GDPR requirements.