# 验证码

验证码（CAPTCHA，全称为“全自动区分计算机与人类的公开图灵测试”）是一种用于网站的挑战—应答测试，用以判断用户是人还是自动化程序，通常的做法是呈现一项对人类来说容易、而原则上对计算机来说困难的任务。<sup>[1](https://www.techradar.com/pro/security/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you)</sup> 验证码保护登录界面、注册表单、评论区与结账页面，使其免受垃圾信息、批量注册账号及其他自动化滥用行为的侵扰。<sup>[1](https://www.techradar.com/pro/security/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you)</sup>

| 关键事实 | 详情 |
|---|---|
| 全称 | 全自动区分计算机与人类的公开图灵测试<sup>[1](https://www.techradar.com/pro/security/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you)</sup> |
| 起源 | 该术语于2000年代初在卡内基梅隆大学（Carnegie Mellon University）提出；最早发表的用法见于贝尔德（Baird）等人2001年的一篇论文，该文将项目起始时间定在2000年<sup>[2](https://www.tandfonline.com/doi/abs/10.1080/24701475.2020.1831197)</sup> |
| 主要类型 | 基于文本（扭曲字符）、基于图像和基于音频的挑战<sup>[3](https://www.sciencedirect.com/science/article/pii/S0167404818312185)</sup> |
| reCAPTCHA | 由路易斯·冯·安（Luis von Ahn）领导的团队在卡内基梅隆大学开发的一种验证码系统，同时兼作转录工具，到2008年已被四万多个网站使用<sup>[4](https://www.cs.cmu.edu/~biglou/reCAPTCHA_Science.pdf)</sup><sup> • </sup><sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC10832315/)</sup> |
| 谷歌现行密钥类型 | 不触发挑战的评分型密钥、触发非确定性挑战的复选框型密钥，以及触发确定性挑战的策略型密钥<sup>[6](https://docs.cloud.google.com/recaptcha/docs/choose-key-type)</sup> |
| 对抗人工智能的有效性 | 2023年USENIX Security的一项研究发现，机器人在解决现代验证码时比人类更快、更准确，而人类在一道图像谜题上要花约十秒钟<sup>[7](https://shieldlabs.ai/blog/captcha-alternatives)</sup> |
| 主要替代方案 | 行为式机器人检测、工作量证明挑战、通过WebAuthn进行的硬件认证，以及保护隐私的令牌<sup>[8](https://developers.cloudflare.com/fundamentals/reference/cryptographic-personhood/)</sup><sup> • </sup><sup>[9](https://geekchamp.com/what-to-use-instead-of-captcha-puzzles-in-2026/)</sup> |

## 起源

验证码的概念及其缩写大约于2000年在[匹兹堡](https://www.edgepedia.org/zh/pittsburgh)的[卡内基梅隆大学](https://www.edgepedia.org/zh/carnegie-mellon-university)出现。贝尔德等人2001年的一篇论文首次公开发表了这一术语，并在一条脚注中引用captcha.net网站及与卡内基梅隆大学相关人员的私人通信，将项目追溯至2000年。<sup>[2](https://www.tandfonline.com/doi/abs/10.1080/24701475.2020.1831197)</sup> 这项技术的兴起恰逢计算机科学家路易斯·冯·安于2000年秋来到卡内基梅隆大学，同一时期，时任雅虎（Yahoo!）首席科学家的乌迪·曼伯（Udi Manber）请该校计算机科学系协助减少雅虎聊天室中的垃圾信息。<sup>[2](https://www.tandfonline.com/doi/abs/10.1080/24701475.2020.1831197)</sup>

## 挑战的类型

**基于文本的验证码**显示扭曲的字符，要求用户输入。为对抗日益改进的攻击，多数基于文本的系统除图像扭曲技术外还使用非词，因为识别真实的词典单词会给识别软件提供额外的抓手。<sup>[10](https://www.sciencedirect.com/science/article/abs/pii/S0141938211000102)</sup> 基于文本和基于音频的验证码是最早的两种方法，而研究表明，它们在保护系统和服务免受现代攻击方面已显不足。<sup>[3](https://www.sciencedirect.com/science/article/pii/S0167404818312185)</sup>

**基于图像的验证码**呈现图片而非扭曲文字，基于音频的验证码则呈现声音，两者的引入部分是为了弥补文本挑战的弱点。<sup>[11](https://www.sciencedirect.com/science/article/pii/S016981411830413X)</sup> 在可用性对比测试中，基于图像的系统Asirra和ESP-PIX表现优于两种最常用的基于文本的验证码——reCAPTCHA和谷歌的验证码。<sup>[11](https://www.sciencedirect.com/science/article/pii/S016981411830413X)</sup>

**音频验证码**服务于无法阅读视觉挑战的用户，因为扭曲文字、图像网格和动态谜题对看不见它们的人几乎毫无用处。<sup>[12](https://emiratesscholar.com/directory/index.php/ijidc/article/view/1235)</sup> 其成绩好坏参半：当前的音频验证码可用性低，且面对自动语音识别攻击并不安全，2019年ASSETS无障碍会议上发表的对自动生成与评估的音频reCAPTCHA的研究正是针对这一问题。<sup>[13](https://www.microsoft.com/en-us/research/publication/automatic-generation-and-evaluation-of-usable-and-secure-audio-recaptcha/?lang=ko-kr)</sup> 一项针对SoundsRight音频验证码的研究——该验证码旨在对视力障碍者既可用又安全——以20名盲人参与者和20名视力正常参与者测试了声音掩蔽（旨在击败语音识别的背景音频）的效果。<sup>[14](https://www.tandfonline.com/doi/abs/10.1080/0144929X.2014.898793)</sup>

## reCAPTCHA与人类计算

reCAPTCHA由[路易斯·冯·安](https://www.edgepedia.org/zh/luis-von-ahn)领导的一群卡内基梅隆大学研究人员于2000年代初开发，它把解答验证码变成了有用的工作：用户转录的不是随机的扭曲文字，而是光学字符识别未能从扫描的书籍和报纸中读出的单词。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC10832315/)</sup> 一道挑战会显示一行扫描文本，其中一个词已知，另一个词是扭曲的、须由用户输入，因此每次解答都贡献了一份转录。<sup>[4](https://www.cs.cmu.edu/~biglou/reCAPTCHA_Science.pdf)</sup> 到该项目的《科学》（Science）论文发表时，这套装置已在四万多个网站上使用。<sup>[4](https://www.cs.cmu.edu/~biglou/reCAPTCHA_Science.pdf)</sup> 谷歌收购了这项服务，其现行文档描述了三种密钥类型：返回风险评分而不触发挑战的评分型密钥、触发非确定性挑战的复选框型密钥，以及触发确定性挑战的策略型挑战密钥。<sup>[6](https://docs.cloud.google.com/recaptcha/docs/choose-key-type)</sup>

## 可用性与无障碍

可用性研究一再衡量验证码给合法用户带来的成本。比较文本与图像系统的实证研究发现，Asirra和ESP-PIX等基于图像的验证码表现优于主流的基于文本的替代品，而设计拙劣的挑战即使能阻止滥用，也会损害网站的可用性。<sup>[11](https://www.sciencedirect.com/science/article/pii/S016981411830413X)</sup><sup> • </sup><sup>[15](https://research.google/pubs/easy-does-it-more-usable-captchas/)</sup> 谷歌研究人员描述了专门为最大化可用性而设计的两种验证码方案。<sup>[15](https://research.google/pubs/easy-does-it-more-usable-captchas/)</sup> 在移动设备上，一项在苹果iPad上评估语音与触摸输入的研究发现，当基于图像的挑战不可行时，谷歌的验证码是一个令人满意的替代方案。<sup>[16](https://www.researchgate.net/publication/261724856_Evaluating_the_usability_of_CAPTCHAs_on_a_mobile_device_with_voice_and_touch_input)</sup>

无障碍仍是一个核心问题。由于视觉挑战将盲人和低视力用户排除在外，人们开发了音频替代方案和TapCAPTCHA等非视觉触摸屏设计，研究人员还提出了让视力障碍用户贡献口语数据、而不仅仅是被照顾的系统。<sup>[12](https://emiratesscholar.com/directory/index.php/ijidc/article/view/1235)</sup>

## 对抗现代机器人的有效性

验证码的安全前提——该任务能将人与机器区分开来——随着机器学习的进步而受到侵蚀。2023年USENIX Security上发表的一项针对现代验证码的实证研究发现，机器人解决它们比人类更快、更准确，而真实用户在一道图像谜题上要花约十秒钟。<sup>[7](https://shieldlabs.ai/blog/captcha-alternatives)</sup> 由博士生安德烈亚斯·普莱斯纳（Andreas Plesner）领导的[苏黎世联邦理工学院](https://www.edgepedia.org/zh/eth-zurich)（ETH Zurich）研究人员，利用YOLO模型进行目标检测和图像分割，绕过了谷歌广泛使用的reCAPTCHA v2。<sup>[17](https://www.isea-symposium-archives.org/wp-content/uploads/2025/09/2025_Hong_GAPTCHAs-Playful-Exploration.pdf)</sup> 攻击者还将挑战转包给人类解答者：商业服务公开标价，每解一张图约0.001至0.005美元，而2025年泰雷兹（Thales）的恶意机器人报告称，自动化流量占全部互联网流量的51%。<sup>[18](https://arcjet.com/learn/captcha-alternatives)</sup><sup> • </sup><sup>[7](https://shieldlabs.ai/blog/captcha-alternatives)</sup> 就连更新的形式也很快沦陷：谷歌实验性的基于摄像头的reCAPTCHA要求扫描手部以证明用户是活人，结果测试者在几天内就用一张静态的手部图库照片通过OBS Virtual Camera将其攻破，全程没有活人、视频或人工智能参与。<sup>[19](https://www.tomshardware.com/tech-industry/googles-camera-based-recaptcha-asks-for-a-hand-scan-to-prove-youre-human)</sup>

验证码的作用仍不止于过滤机器人。在AI代理滥用[Python软件包索引](https://www.edgepedia.org/zh/python-package-index)（Python Package Index）之后，其维护者要求创建账号时进行电子邮件和电话验证并加一道验证码，而验证码仍是阻碍批量自动注册的一道常规关卡。<sup>[1](https://www.techradar.com/pro/security/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you)</sup>

## 替代方案

由于可见的谜题既给用户带来负担，又日益无法对抗机器，2020年代中期的网站越来越多地在后台评估浏览器和请求信号，只对判定为有风险的流量发起挑战或予以拦截。<sup>[9](https://geekchamp.com/what-to-use-instead-of-captcha-puzzles-in-2026/)</sup> 主要方法有：

- **风险评分与行为分析。** reCAPTCHA的评分型密钥为每次交互返回一个风险评分而不显示挑战，让网站自行决定采取何种行动。<sup>[6](https://docs.cloud.google.com/recaptcha/docs/choose-key-type)</sup>
- **硬件认证。** [Cloudflare](https://www.edgepedia.org/zh/cloudflare)的“人格加密认证”（Cryptographic Attestation of Personhood，CAP）让访客通过WebAuthn API触碰硬件安全密钥来证明其合法性，这默认避免了生物特征的收集；Cloudflare指出，此类系统被攻破的实例提高的是攻击成本，而非证明其已被破解。<sup>[8](https://developers.cloudflare.com/fundamentals/reference/cryptographic-personhood/)</sup>
- **保护隐私的令牌与通行密钥。** 苹果的私密访问令牌（Private Access Tokens）让设备证明自己是运行真实操作系统的真实设备，而不泄露身份；WebAuthn通行密钥则可替代解谜来防止机器人。<sup>[9](https://geekchamp.com/what-to-use-instead-of-captcha-puzzles-in-2026/)</sup><sup> • </sup><sup>[20](https://nowfound.app/alternatives/replace-captchas-with-webauthn-passkeys-for-bot-prevention)</sup>

所有验证方案共有的一个结构性弱点是“骡子问题”：一个通过验证的人可以把由此得到的账号或令牌交给机器人，因此证明只适用于最初的验证，而不适用于此后的每一次操作。<sup>[22](https://www.pcgamer.com/software/security/eye-scans-and-digital-ids-to-stop-online-bots-in-games-its-not-quite-as-orwellian-as-you-might-think-but-proof-of-human-isnt-problem-free/)</sup>

## References

1. [Anthropic reveals rogue AI agents hate CAPTCHAs, just like you, TechRadar](https://www.techradar.com/pro/security/anthropic-reveals-rogue-ai-agents-hate-captchas-just-like-you)
2. [Little history of CAPTCHA, Internet Histories Vol. 5 No. 1](https://www.tandfonline.com/doi/abs/10.1080/24701475.2020.1831197)
3. [Is image-based CAPTCHA secure against attacks based on machine learning? An experimental study, Computers & Security](https://www.sciencedirect.com/science/article/pii/S0167404818312185)
4. [reCAPTCHA: Human-based character recognition via web security measures (Science paper PDF), Carnegie Mellon](https://www.cs.cmu.edu/~biglou/reCAPTCHA_Science.pdf)
5. [Dark citizen science: Google's reCAPTCHA, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10832315/)
6. [Choose the appropriate key type, Google Cloud Fraud Defense documentation](https://docs.cloud.google.com/recaptcha/docs/choose-key-type)
7. [7 CAPTCHA Alternatives for 2026, ShieldLabs](https://shieldlabs.ai/blog/captcha-alternatives)
8. [Cryptographic Attestation of Personhood, Cloudflare Fundamentals docs](https://developers.cloudflare.com/fundamentals/reference/cryptographic-personhood/)
9. [CAPTCHA Alternatives in 2026: Turnstile, Passkeys, and More, GeekChamp](https://geekchamp.com/what-to-use-instead-of-captcha-puzzles-in-2026/)
10. [Usability study of text-based CAPTCHAs, ScienceDirect](https://www.sciencedirect.com/science/article/abs/pii/S0141938211000102)
11. [Empirical studies to investigate the usability of text- and image-based CAPTCHAs, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S016981411830413X)
12. [Human-Centric Audio CAPTCHA for the Visually Impaired, IJIDC](https://emiratesscholar.com/directory/index.php/ijidc/article/view/1235)
13. [Automatic Generation and Evaluation of Usable and Secure Audio reCAPTCHA, Microsoft Research](https://www.microsoft.com/en-us/research/publication/automatic-generation-and-evaluation-of-usable-and-secure-audio-recaptcha/?lang=ko-kr)
14. [Investigating the effects of sound masking on the use of audio CAPTCHAs, Behaviour & Information Technology](https://www.tandfonline.com/doi/abs/10.1080/0144929X.2014.898793)
15. [Easy Does It: More Usable CAPTCHAs, Google Research](https://research.google/pubs/easy-does-it-more-usable-captchas/)
16. [Evaluating the usability of CAPTCHAs on a mobile device with voice and touch input, ResearchGate](https://www.researchgate.net/publication/261724856_Evaluating_the_usability_of_CAPTCHAs_on_a_mobile_device_with_voice_and_touch_input)
17. [GAPTCHAs: Playful Exploration, ISEA2025 Symposium proceedings](https://www.isea-symposium-archives.org/wp-content/uploads/2025/09/2025_Hong_GAPTCHAs-Playful-Exploration.pdf)
18. [Is CAPTCHA still effective, and what should you use instead? Arcjet](https://arcjet.com/learn/captcha-alternatives)
19. [Google testing controversial webcam-based reCAPTCHA, Tom's Hardware](https://www.tomshardware.com/tech-industry/googles-camera-based-recaptcha-asks-for-a-hand-scan-to-prove-youre-human)
20. [Replace CAPTCHAs with WebAuthn passkeys for bot prevention, NowFound](https://nowfound.app/alternatives/replace-captchas-with-webauthn-passkeys-for-bot-prevention)
21. [CAPTCHA alternatives, Foil](https://usefoil.com/learn/captcha-alternatives)
22. [Eye scans and digital IDs to stop online bots in games, PC Gamer](https://www.pcgamer.com/software/security/eye-scans-and-digital-ids-to-stop-online-bots-in-games-its-not-quite-as-orwellian-as-you-might-think-but-proof-of-human-isnt-problem-free/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Security governance and internet policy › Cryptographic protocols › Commitment, challenge–response, and interlocking protocols

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/captcha

English original: https://www.edgepedia.org/captcha
