爬虫选择性地遵守robots.txt指令:来自大规模实证研究的证据
Scrapers selectively respect robots.txt directives: evidence from a large-scale empirical study
AI总结:
本研究通过大规模实证分析发现,爬虫对robots.txt指令的遵守具有选择性,且AI搜索爬虫等类别几乎不检查该文件,表明依赖此协议防止抓取存在风险,需探索替代方案。
摘要:
近年来,在线数据抓取呈现出新的维度,因为传统爬虫加入了新的AI专用机器人。为应对不必要的抓取,许多网站使用诸如机器人排除协议(REP)之类的工具,该协议在网站根目录放置robots.txt文件以规定爬虫行为。然而,REP的有效性尚未得到充分理解。轶事证据表明,一些机器人对其遵守不佳,但尚无严谨研究支持或反驳这一说法。为了理解REP的优点和局限,我们利用来自我们机构的匿名网络日志,开展了首次关于网络爬虫对robots.txt指令遵守情况的大规模研究。我们通过一系列受控的robots.txt实验,分析了130个自报机器人(以及许多匿名机器人)在40天内的行为。我们发现,机器人对更严格的robots.txt指令的遵守可能性较低,且某些类别的机器人(包括AI搜索爬虫)几乎不检查robots.txt。这些发现表明,依赖robots.txt文件来防止不必要的抓取是有风险的,并凸显了替代方法的必要性。
英文摘要:
Online data scraping has taken on new dimensions in recent years, as traditional scrapers have been joined by new AI-specific bots. To counteract unwanted scraping, many sites use tools like the Robots Exclusion Protocol (REP), which places a robots$.$txt file at the site root to dictate scraper behavior. Yet, the efficacy of the REP is not well-understood. Anecdotal evidence suggests some bots comply poorly with it, but no rigorous study exists to support (or refute) this claim. To understand the merits and limits of the REP, we conduct the first large-scale study of web scraper compliance with robots$.$txt directives using anonymized web logs from our institution. We analyze the behavior of 130 self-declared bots (and many anonymous ones) over 40 days, using a series of controlled robots$.$txt experiments. We find that bots are less likely to comply with stricter robots$.$txt directives, and that certain categories of bots, including AI search crawlers, rarely check robots$.$txt at all. These findings suggest that relying on robots$.$txt files to prevent unwanted scraping is risky and highlight the need for alternative approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。