ScrapeBench Reveals Why AI Agents Struggle With Web Scraping Rules
As AI agents move from answering questions to operating websites on a user’s behalf, web scraping becomes more than a technical capability test. It also raises questions about contractual compliance, computer security, and the reliability of autonomous action. The paper “ScrapeBench: Evaluating Legal Compliance of AI Agents in Website Scraping” introduces a benchmark focused on whether agents respect two common sources of website policy: terms of service and robots.txt directives.
What ScrapeBench measures
The benchmark evaluates agents across two website samples:
- 1,626 popular websites that explicitly prohibit scraping, where agents are expected to refuse the task;
- 269 websites that do not prohibit scraping, where agents should avoid rejecting an otherwise permitted request;
- additional cases examining whether agents actually inspect the relevant ToS and robots.txt files;
- a human baseline involving 180 participants.
The headline result is troubling. Across the tested closed-weight and open-weight agents, compliance on sites that explicitly prohibit scraping remained below 5% for most systems. Checking the applicable policy did not solve the problem: agents that actively consulted ToS or robots.txt still showed low compliance. This points to a gap between policy access and policy-grounded action. An agent may locate a rule yet fail to interpret its scope, distinguish one type of restriction from another, or carry the decision through to the execution layer.
The benchmark also exposes the opposite failure mode: over-refusal. On sites that do not prohibit scraping, agents sometimes decline tasks that the available policy information allows. The paper reports an over-refusal rate of 98.5% for Claude Opus 4.6 in this sample. Excessive caution can therefore be as damaging to usability as unsafe compliance is to legal and operational risk.
Why the findings matter
Many model evaluations focus on language understanding or answer quality. A web agent, however, must complete a longer chain: find the policy, interpret it, decide what action is allowed, and execute that decision consistently. ScrapeBench makes this chain visible and shows why simply asking whether an agent “looked at” a policy is not an adequate safety measure.
For developers, the results support stronger policy parsing, explicit pre-action gates, and auditable records of the reasons behind an agent’s decision. Website operators also have an interest in making machine-readable restrictions clear and consistent. The human baseline adds another perspective: participants achieved compliance rates comparable to the agents but over-refused at much higher rates, suggesting that the difficulty is not unique to models. Policy language and context can challenge any decision-maker.
The broader lesson is that agent reliability should measure both sides of the error trade-off: unauthorized action and unnecessary refusal. As autonomous browsers gain access to more websites and data, benchmarks such as ScrapeBench can help turn legal and policy compliance from an informal expectation into a testable deployment requirement.
Source: Hugging Face Daily Papers
Comments
Checking sign-in status...
Loading comments...