# 互联网机器人

互联网机器人（Internet bot）是一种在互联网上运行自动化任务的软件应用，执行诸如抓取网页、发布消息或发出请求等重复性操作，速度远超人类用户。机器人既包括搜索引擎爬虫、客服聊天机器人等有用程序，也包括抓取内容、散布垃圾信息或侵入用户账户的恶意程序。<sup>[1](https://www.cloudflare.com/learning/bots/what-is-a-bot/)</sup> 根据Imperva发布的《2025年恶意机器人报告》，到2024年，自动化流量已超过网络上的人类活动，占全部网络流量的51%。<sup>[2](https://www.imperva.com/resources/resource-library/reports/2025-bad-bot-report/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 一种被编程为在网络上执行自动化任务（通常是重复性任务）的软件应用，速度比人更快<sup>[1](https://www.cloudflare.com/learning/bots/what-is-a-bot/)</sup> |
| 流量占比 | 2024年自动化流量达到全部网络流量的51%，十年来首次超过人类活动；恶意机器人占全部互联网流量的37%<sup>[2](https://www.imperva.com/resources/resource-library/reports/2025-bad-bot-report/)</sup> |
| 早期基线 | 2021年，网站流量中人类流量占57.7%，良性机器人占14.6%，恶意机器人占27.7%<sup>[3](https://www.imperva.com/resources/reports/2022-Imperva-Bad-Bot-Report.pdf)</sup> |
| 管理协议 | RFC 9309（2022年9月）将机器人排除协议标准化，该协议最初由Martijn Koster于1994年定义；其规则明确不属于访问授权<sup>[4](https://www.rfc-editor.org/rfc/rfc9309.html)</sup> |
| 标志性爬虫 | 谷歌于1996年推出其网络爬虫Googlebot，推动了网络搜索与索引的发展<sup>[5](https://www.techopedia.com/definition/24063/internet-bot)</sup> |
| AI时代的转变 | 据泰雷兹报告，AI驱动的机器人攻击在一年内激增12.5倍；2025年数据显示自动化流量超过互联网流量的53%，恶意机器人接近40%<sup>[6](https://www.techradar.com/pro/security/the-challenge-is-no-longer-identifying-bots-its-understanding-what-the-bot-agent-or-automation-is-doing-new-report-flags-40-percent-of-all-internet-traffic-is-now-bad-bots)</sup> |

## 机器人的类型

机器人通常按其功能分类。聊天机器人通过用预设回复回应短语来模拟人类对话。网络爬虫（如Googlebot）扫描互联网上网页的内容并将其编入索引以供搜索。社交机器人在社交媒体平台上运作。恶意机器人抓取内容、散布垃圾信息或实施撞库攻击——即用窃取的用户名与密码组合在登录页面进行重放尝试。<sup>[1](https://www.cloudflare.com/learning/bots/what-is-a-bot/)</sup>

良性还是恶意的区分是行为上的，而非技术上的。执行必要或有用服务的机器人被视为良性，例如[搜索引擎](https://www.edgepedia.org/zh/search-engine)爬虫、客服聊天机器人或性能监控机器人；任何滥用在线产品或服务的机器人——从试图侵入账户到活动网站上的抢票机器人——都被视为恶意。由于良性和恶意机器人可能具有相同的技术特征，封锁一方而放行另一方十分困难。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup>

与通过浏览器操作的人类用户不同，机器人通常直接发出HTTP请求，往往使用无头浏览器——即没有可见界面的浏览器。机器人可以填写并提交表单、点击链接、抓取文本、下载内容、发表评论以及与社交媒体互动。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup>

## 历史

EggDrop是最早流行起来的机器人之一，它在IRC上自动化执行基本任务；20世纪90年代，频道管理员依赖此类机器人，尽管恶意IRC机器人可能利用网络分裂（netsplit）夺取管理员权限并大规模踢出合法用户。<sup>[8](https://static.usenix.org/events/hotbots07/tech/full_papers/grizzard/grizzard_html/)</sup><sup> • </sup><sup>[9](https://www.irc6.net/irc-bots-history/)</sup>

网络抓取成为最主要的良性用途。谷歌于1996年推出其爬虫Googlebot，为其搜索引擎索引网络。<sup>[5](https://www.techopedia.com/definition/24063/internet-bot)</sup> 一个生产级爬虫由若干协同工作的组件构成：URL前沿，维护待访问页面的队列；下载器，在遵守速率限制的前提下获取内容；解析器，提取文本和链接；去重层，防止相同内容被重复处理。<sup>[10](https://technav.ieee.org/topic/bot-internet/)</sup> 前沿必须平衡两个目标：优先处理频繁变化的高质量页面，以及礼貌性——即避免在短时间内对同一主机重复发出抓取请求。<sup>[11](https://nlp.stanford.edu/IR-book/html/htmledition/the-url-frontier-1.html)</sup>

恶意自动化在2000年代走向产业化。一份涵盖2002年至2009年的研究档案记录了这一转变：从爱好者编写的单文件IRC机器人，发展为商业出售的犯罪软件工具包；2009年，[Zeus](https://www.edgepedia.org/zh/zeus-malware)机器人在商业模式下引入了HTTP命令与控制以及网页注入。<sup>[12](https://h1n054ur.github.io/botnet-research-archive/analysis/evolution-timeline/)</sup> 僵尸网络——运行机器人软件的受感染机器网络——后来采用了点对点通信，如Trojan.Peacomm机器人，使网络没有单一故障点。<sup>[8](https://static.usenix.org/events/hotbots07/tech/full_papers/grizzard/grizzard_html/)</sup>

## robots.txt协议

希望控制爬虫访问的网站所有者会在robots.txt文件中发布规则。机器人排除协议最初由Martijn Koster于1994年定义，并于2022年9月由IETF标准化为RFC 9309，作者包括来自谷歌的人员和Koster本人。<sup>[4](https://www.rfc-editor.org/rfc/rfc9309.html)</sup> 规则位于服务顶层路径下名为“/robots.txt”的文件中，必须采用UTF-8编码，由若干组用户代理行及其后的Allow和Disallow规则组成，爬虫将规则与URI路径进行匹配。<sup>[13](https://datatracker.ietf.org/doc/html/rfc9309)</sup>

实践中需要注意两个限制。RFC声明这些规则不属于访问授权，因此遵守是自愿的。<sup>[4](https://www.rfc-editor.org/rfc/rfc9309.html)</sup> [Cloudflare](https://www.edgepedia.org/zh/cloudflare)的教学材料将同样的安排描述为一种荣誉制度：该文件并不强制执行其规则，恶意机器人通常也不会遵守。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup>

## 机器人流量的规模

大规模分析网络流量的测量公司追踪到自动化程度的稳步上升。Imperva的2022年报告显示，2021年流量中人类占57.7%，良性机器人占14.6%，恶意机器人占27.7%。<sup>[3](https://www.imperva.com/resources/reports/2022-Imperva-Bad-Bot-Report.pdf)</sup> 2023年，恶意机器人占全部互联网流量的32%，较2022年增长1.8%。<sup>[14](https://portal.climbcs.com/content/climb-wp/content/vendor-page/imperva/Imperva-2024-Bad-Bot-Report.pdf)</sup> 2025年的报告随后记录了交叉点：自动化流量占全部网络流量的51%，恶意机器人占37%。<sup>[2](https://www.imperva.com/resources/resource-library/reports/2025-bad-bot-report/)</sup> 拥有Imperva的泰雷兹报告称，2025年数据显示自动化活动超过互联网流量的53%，恶意机器人接近40%。<sup>[6](https://www.techradar.com/pro/security/the-challenge-is-no-longer-identifying-bots-its-understanding-what-the-bot-agent-or-automation-is-doing-new-report-flags-40-percent-of-all-internet-traffic-is-now-bad-bots)</sup>

最近的增长由AI驱动。据Imperva的2024年报告，旨在为AI训练模型提供数据的抓取机器人增长至总流量的近40%，高于2022年的约33%。<sup>[15](https://www.brightspot.com/cms-resources/technology-insights/brightspot-automated-bot-traffic-report-and-recommendations)</sup> 机器人缓解厂商DataDome在2025年7月至2026年6月间检测到527亿次AI代理和LLM爬虫请求，该期间AI流量增长82.3%；Meta关联机器人占所追踪AI流量的46.3%，OpenAI关联机器人占34.6%。<sup>[16](https://datadome.co/threat-research/state-of-bot-and-agent-security-report-key-ai-findings/)</sup> 泰雷兹报告称，随着生成式AI降低了低水平攻击者的入门门槛，AI驱动的机器人攻击在过去一年激增12.5倍。<sup>[6](https://www.techradar.com/pro/security/the-challenge-is-no-longer-identifying-bots-its-understanding-what-the-bot-agent-or-automation-is-doing-new-report-flags-40-percent-of-all-internet-traffic-is-now-bad-bots)</sup>

## 检测与机器人管理

机器人管理是指封锁不受欢迎或恶意的机器人流量，同时仍允许有用的机器人访问网络资源的实践。机器人管理器识别机器人与人类访客、对机器人声誉评分、按IP声誉封锁、分析行为、将良性机器人加入允许列表、用CAPTCHA或[JavaScript](https://www.edgepedia.org/zh/javascript)测试质询可疑流量，并对过度使用进行速率限制。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup> 检测方法包括机器人难以解决的JavaScript和CAPTCHA质询、按源[IP地址](https://www.edgepedia.org/zh/ip-address)封锁已知机器人，以及将用户活动与典型人类行为进行比较的机器学习和行为分析。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup> 一种蜜罐技术是发布一个网页，并在robots.txt中禁止机器人访问该网页；良性机器人会避开它，而抓取它的机器人则暴露了自己的恶意。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup>

检测如今是一项大规模商业服务。一项2026年对前1万个网站的测量研究发现，封锁由服务商驱动：Cloudflare的封锁率为37%，Akamai为26%，而未默认开启机器人检测的服务商则在0%至16%之间；无头Chromium遇到的软封锁率为15%。<sup>[17](https://arxiv.org/abs/2606.14525)</sup> 同一研究发现，82%的封锁可归因于机器人检测，且83%的受调查网络测量论文完全未讨论机器人检测封锁问题，这对研究爬虫而言是一种系统性的样本损失。<sup>[17](https://arxiv.org/abs/2606.14525)</sup>

现代机器人能够抵抗这些防御。一项2026年对基于LLM的网络代理的研究发现，部分代理绕过了所有受评估的反机器人机制；然而，所有受评估的代理都可以通过跨网络层、HTTP层和浏览器层的多层指纹识别与人类以及彼此区分开来；而隐蔽性和反检测机制往往增加而非降低可检测性。<sup>[18](https://arxiv.org/abs/2606.30119)</sup> 冒充行为加剧了这一问题：声称来自GPTBot或ClaudeBot的请求可能并非来自所述厂商，DataDome发现80%的AI代理未正确表明身份，2026年2月至7月间AI代理冒充行为上升了45%。<sup>[16](https://datadome.co/threat-research/state-of-bot-and-agent-security-report-key-ai-findings/)</sup>

## 机器人攻击的对象

不受控制的机器人流量造成具体损失。过量的机器人流量可能使网络服务器过载，拖慢或拒绝为合法用户提供服务，包括通过分布式拒绝服务（DDoS）攻击。机器人管理解决方案旨在缓解DDoS和拒绝服务攻击、撞库、信用卡撞库、暴力破解密码、垃圾发帖、网络抓取、电子邮件地址收集、广告欺诈和点击欺诈，以及库存囤积和购物车填充等恶意性不那么明显的活动。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup>

AI爬虫的经济逻辑与搜索爬虫不同。搜索引擎爬虫为页面建立索引，使这些页面能出现在搜索结果中并将访客带回；封锁所有机器人会使网站从搜索结果中消失并削减自然流量。<sup>[7](https://www.cloudflare.com/learning/bots/what-is-bot-management/)</sup> 为训练大型语言模型而复制内容的AI爬虫不提供对等的回报，这正是厂商如今推销一键封锁AI抓取器和爬虫的原因。<sup>[17](https://arxiv.org/abs/2606.14525)</sup>

## References

1. [What is a bot? Cloudflare Learning Center](https://www.cloudflare.com/learning/bots/what-is-a-bot/)
2. [2025 Bad Bot Report, Imperva](https://www.imperva.com/resources/resource-library/reports/2025-bad-bot-report/)
3. [2022 Imperva Bad Bot Report](https://www.imperva.com/resources/reports/2022-Imperva-Bad-Bot-Report.pdf)
4. [RFC 9309: Robots Exclusion Protocol, RFC Editor](https://www.rfc-editor.org/rfc/rfc9309.html)
5. [What is an Internet Bot? Definition, Types & Examples, Techopedia](https://www.techopedia.com/definition/24063/internet-bot)
6. [New report flags 40% of all internet traffic is now bad bots, TechRadar](https://www.techradar.com/pro/security/the-challenge-is-no-longer-identifying-bots-its-understanding-what-the-bot-agent-or-automation-is-doing-new-report-flags-40-percent-of-all-internet-traffic-is-now-bad-bots)
7. [What is bot management? Cloudflare Learning Center](https://www.cloudflare.com/learning/bots/what-is-bot-management/)
8. [Peer-to-Peer Botnets: Overview and Case Study, USENIX HotBots 2007](https://static.usenix.org/events/hotbots07/tech/full_papers/grizzard/grizzard_html/)
9. [A Brief History of IRC Bots: From Eggdrop to Modern Automation, IRC6](https://www.irc6.net/irc-bots-history/)
10. [Bot (Internet), IEEE Technology Navigator](https://technav.ieee.org/topic/bot-internet/)
11. [The URL frontier, Introduction to Information Retrieval (Stanford)](https://nlp.stanford.edu/IR-book/html/htmledition/the-url-frontier-1.html)
12. [Evolution Timeline, Botnet Research Archive](https://h1n054ur.github.io/botnet-research-archive/analysis/evolution-timeline/)
13. [RFC 9309: Robots Exclusion Protocol, IETF Datatracker](https://datatracker.ietf.org/doc/html/rfc9309)
14. [2024 Imperva Bad Bot Report, Executive Summary](https://portal.climbcs.com/content/climb-wp/content/vendor-page/imperva/Imperva-2024-Bad-Bot-Report.pdf)
15. [Automated Bot Traffic Report and Recommendations, Brightspot](https://www.brightspot.com/cms-resources/technology-insights/brightspot-automated-bot-traffic-report-and-recommendations)
16. [AI Traffic Is Up 82%. Can You Tell Which Agents to Trust? DataDome](https://datadome.co/threat-research/state-of-bot-and-agent-security-report-key-ai-findings/)
17. [Detecting Bot Detection: Prevalence, Techniques, and Implications for Web Measurement Research, arXiv](https://arxiv.org/abs/2606.14525)
18. [On the Internet, Nobody Knows You're an LLM Bot: Unmasking Web Agents with Multi-Layer Fingerprinting, arXiv](https://arxiv.org/abs/2606.30119)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/internet-bot

English original: https://www.edgepedia.org/internet-bot
