ArticleslgStudy

computer science

CAPTCHA

CAPTCHA is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CAPTCHA rather than just read about it. In short: A CAPTCHA ( KAP-chə), a type of challenge-response Turing test, aims to protect computing user-interfaces. It attempts to deter bot attacks and spam by determining whether a user is a human.

CAPTCHA — main illustration
CAPTCHA — illustration

Key takeaways

  • CAPTCHA belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CAPTCHA to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CAPTCHA from memory before moving on to harder problems.

Reference excerpt

A CAPTCHA ( KAP-chə), a type of challenge-response Turing test, aims to protect computing user-interfaces. It attempts to deter bot attacks and spam by determining whether a user is a human. The term "CAPTCHA" was coined in 2003 by Luis von Ahn, Manuel Blum, Nicholas J. Hopper, and John Langford. It is a contrived acronym for "Completely Automated Public Turing test to tell Computers and Humans Apart". A historically common type of CAPTCHA (displayed as reCAPTCHA v1) was first invented in 1997 by two groups working in parallel. This form of CAPTCHA requires interpreting a sequence of letters or numbers from a distorted image. Because the test is administered by a computer, in contrast to the standard Turing test that is administered by a human, CAPTCHAs are sometimes described as reverse Turing tests. Two widely-used CAPTCHA services are Google's reCAPTCHA and Intuition Machines' hCaptcha. Cloudflare, a major website-security service provider, reported in 2021 that it takes the average person approximately 32 seconds to complete a typical CAPTCHA challenge, although an earlier estimate from Stanford University in 2018 reported a shorter solving-time of about 10 seconds.

Purpose The purpose of CAPTCHAs is to prevent bots from using services intended for human use, prevent denial-of-service attacks, prevent distortion of collected usage information, prevent automated entry of false information, and prevent data scraping. Many websites use CAPTCHA effectively to prevent bot raiding. CAPTCHAs are designed so that humans can complete them, while most robots cannot. Newer CAPTCHAs look at the user's behaviour on the internet, to prove that they are a human. Ideally, a CAPTCHA test only appears if the user's actions resemble those by a bot, such as if they request webpages from suspicious IP addresses, access many pages, or click links too quickly. It has also been suggested that popular CAPTCHA services such as reCAPTCHA and hCAPTCHA had the dual purpose of serving as public tools to use humans to generate data sets for AI with tasks such as image-labelling.

History Since the 1980s–1990s, users have wanted to make text illegible to computers. The first such people were hackers, posting about sensitive topics to Internet forums they thought were being automatically monitored on keywords. To circumvent such filters, they replaced a word with look-alike characters. HELLO could become |-|3|_|_() or )-(3££0, and others, such that a filter could not detect all of them. This later became known as leetspeak. One of the earliest commercial uses of CAPTCHAs was in the Gausebeck–Levchin test. In 2000, idrive.com began to protect its signup page with a CAPTCHA and prepared to file a patent. In 2001, PayPal used such tests as part of a fraud prevention strategy in which they asked humans to "retype distorted text that programs have difficulty recognizing". PayPal co founder and CTO Max Levchin helped commercialize this use. AltaVista implemented an early CAPTCHA scheme to protect against fraudulent account registrations. A popular deployment of CAPTCHA technology, reCAPTCHA, was acquired by Google in 2009. In addition to preventing bot fraud for its users, Google used reCAPTCHA and CAPTCHA technology to digitize the archives of The New York Times and books from Google Books in 2011. While early versions required users to transcribe words or label traffic images, the current implementation of reCAPTCHA is based on collecting data on the behavior and attributes of the user, e.g. through canvas fingerprinting, and using this data to assess which users are bots. Image labeling challenges are only presented when the user is determined to be "high-risk". Cloudflare's Turnstile functions similarly and is also widely used. Mouse movement does not seem to affect reCAPTCHA's risk analysis. In 2026 Google announced that new versions of its reCAPTCHA software would require users to scan a QR-code with their phone, with Android users being required to have Google Play services installed on their phones. This would make solving these captchas impossible on phones without Google Play services (like those running GrapheneOS or LineageOS).

Characteristics CAPTCHAs are automated, requiring little human maintenance or intervention to administer, producing benefits in cost and reliability. Text-based CAPTCHAs are designed such that they require the simultaneous use of three separate abilities—invariant recognition, segmentation, and parsing to complete the task.

Invariant recognition refers to the ability to recognize letters despite a large amount of variation in their shapes. Segmentation is the ability to separate one letter from another, made difficult in CAPTCHAs. Parsing refers to the ability to understand the CAPTCHA holistically, in order to correctly identify each character. Each of these problems poses a significant challenge for a computer, even in isolation. Therefore, these three techniques in tandem make CAPTCHAs difficult for computers to solve. Whilst primarily used for security reasons, CAPTCHAs can also serve as a benchmark task for artificial intelligence technologies. According to an article by Ahn, Blum and Langford, "any program that passes the tests generated by a CAPTCHA can be used to solve a hard unsolved AI problem". They argue that the advantages of using hard AI problems as a means for security are twofold. Either the problem goes unsolved and there remains a reliable method for distinguishing humans from computers, or the problem is solved and a difficult AI problem is resolved along with it.

Accessibility

… excerpt ends here. Continue reading the full article.

Illustrations

CAPTCHA: Many websites require typing a CAPTCHA when creating an account to prevent spam. This image contains a user trying to type the CAPTCHA word "sepalbeam" to protect against automated spam.
Many websites require typing a CAPTCHA when creating an account to prevent spam. This image contains a user trying to type the CAPTCHA word "sepalbeam" to protect against automated spam.
CAPTCHA: An example of a reCAPTCHA challenge from 2007, containing the words "following finding". The waviness and horizontal stroke were added to increase the difficulty of breaking the CAPTCHA with a computer program.
An example of a reCAPTCHA challenge from 2007, containing the words "following finding". The waviness and horizontal stroke were added to increase the difficulty of breaking the CAPTCHA with a computer program.
CAPTCHA: A CAPTCHA usually has a text box directly underneath where the user should fill out the text that they see—in this case "sclt ..was here".
A CAPTCHA usually has a text box directly underneath where the user should fill out the text that they see—in this case "sclt ..was here".

Worked examples

Example 1 — a first encounter with CAPTCHA

Start with the simplest possible case. Write down what CAPTCHA claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CAPTCHA before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CAPTCHA ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CAPTCHA

In research
CAPTCHA appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CAPTCHA in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CAPTCHA is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2003 neologisms, 20th-century inventions, Authentication, so understanding it makes those chapters shorter.
In everyday life
Look for CAPTCHA outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CAPTCHA” →

How to study CAPTCHA in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CAPTCHA means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CAPTCHA out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CAPTCHA in simple terms?

A CAPTCHA ( KAP-chə), a type of challenge-response Turing test, aims to protect computing user-interfaces. It attempts to deter bot attacks and spam by determining whether a user is a human.

Why does CAPTCHA matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CAPTCHA?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CAPTCHA.

Tags

  • 2003 neologisms
  • 20th-century inventions
  • Authentication
  • Computer security
  • Computer vision
  • Human-based computation
  • Internet bots
  • Internet forum terminology
  • Social information processing
  • Turing tests

Keep exploring