Skip to main content
ExplainerWeb ArchitectureExplainer· 8 min read· in Content Types

How the robots.txt Standard Actually Governs Web Crawlers and AI Scrapers

The 1994 Robots Exclusion Protocol was designed to prevent server overloads, but it has become the internet's primary battleground for AI training consent.

By Naina Verma

Web Publishers 35%Search Engine Operators 25%AI Model Developers 25%Digital Archivists 15%
Web Publishers
Publishers view robots.txt as a frontline defense against unauthorized AI ingestion.
Search Engine Operators
View the protocol primarily as a technical tool for managing server load and optimizing crawl budgets.
AI Model Developers
Rely on the protocol to navigate public data while offering granular opt-outs.
Digital Archivists
Argue that strict adherence to robots.txt inadvertently erases digital history and degrades the public record.

Perspectives this story doesn't cover

  • Independent researchers relying on web scraping for academic studies
  • Cybersecurity professionals managing web application firewalls

Key terms

User-agent
The identifier a web crawler uses to announce its name when visiting a website, allowing the server to apply specific rules.
Disallow
A directive in a robots.txt file that asks a specific crawler not to access a particular URL path.
Crawl Budget
The limited amount of time and resources a search engine allocates to scanning a particular website.
RFC 9309
The official Internet Engineering Task Force standard that formalized the rules for the Robots Exclusion Protocol in 2022.

Key points

  • The Robots Exclusion Protocol (robots.txt) was formalized as an official internet standard (RFC 9309) in September 2022.
  • The file is a polite request that manages server load; it does not authenticate visitors or physically block access.
  • Blocking a page in robots.txt prevents crawling but does not prevent Google from indexing the URL if other sites link to it.
  • OpenAI now operates separate crawlers for model training (GPTBot) and real-time search (OAI-SearchBot) to give webmasters granular control.
  • The Internet Archive stopped strictly adhering to the protocol in 2017 to prevent the erasure of digital history.

In September 2022, the Internet Engineering Task Force formally ratified RFC 9309, officially standardizing a plain text file that had governed the internet through informal consensus since 1994. The Robots Exclusion Protocol, universally known as robots.txt, was finally an official internet standard. But the timing of the ratification collided perfectly with the release of modern generative artificial intelligence. A protocol originally designed to keep early web crawlers from crashing fragile servers was suddenly tasked with refereeing a multi-billion-dollar battle over intellectual property, model training, and real-time AI search.[3]

The mechanism itself is remarkably primitive. A robots.txt file sits at the root of a domain—such as example.com/robots.txt—and provides a list of rules for automated visitors. It uses a simple syntax of 'User-agent' to identify the bot, followed by 'Allow' or 'Disallow' directives for specific URL paths. When a compliant web crawler arrives at a domain, it first reads this file, finds the group of rules matching its name, and follows them. If no specific rules exist for that bot, it defaults to a wildcard rule, or assumes full access.[3]

For decades, this system worked because the incentives of website owners and search engines were aligned. Googlebot crawled the web to index pages, and in exchange, Google Search sent human traffic back to those websites. The robots.txt file was primarily used to manage crawl budget—preventing Google from wasting time on duplicate pages, administrative login portals, or massive PDF directories. 'A robots.txt file tells search engine crawlers which URLs the crawler can access on your site,' explains Google Search Central documentation. 'This is used mainly to avoid overloading your site with requests; it is not a mechanism for keeping a web page out of Google.'[1]

That fundamental limitation is the most misunderstood aspect of the protocol. The file blocks crawling, but it does not block indexing. If an external website links to a page that is disallowed in robots.txt, Google can still index the URL and display it in search results, albeit without a descriptive snippet. Because the crawler is forbidden from reading the page, it cannot see any 'noindex' tags placed in the HTML header. To truly remove a page from search results, webmasters must leave the page open to crawling and use a 'noindex' meta tag, or implement strict server-side password protection.[1]

Compliant web crawlers check the root domain for a robots.txt file before accessing other pages.

The arrival of large language models fractured the foundational agreement of the open web. AI crawlers scrape content not to index it for a search engine that returns human traffic, but to ingest it into massive training datasets that power standalone products like ChatGPT or Claude. In response, website owners began weaponizing their robots.txt files to block AI companies entirely, fundamentally altering the file's purpose from server load management to intellectual property defense. The text file became the only accessible lever for publishers attempting to opt out of the generative AI boom.

OpenAI, recognizing the growing publisher backlash, introduced specific user agents to give webmasters granular control over how their data is consumed. 'OpenAI uses OAI-SearchBot and GPTBot robots.txt tags to enable webmasters to manage how their sites and content work with AI,' the company's documentation states. GPTBot collects data to train generative AI foundation models, while OAI-SearchBot is strictly used to surface websites in ChatGPT's real-time search features. This separation acknowledges that being indexed for search and being ingested for model training are two entirely different propositions.[2]

This bifurcation forces webmasters to make a calculated choice. A site can block GPTBot to prevent its articles from being ingested into future versions of GPT-4, while simultaneously allowing OAI-SearchBot to ensure the site is cited when a user asks ChatGPT a direct question. 'Each setting is independent of the others,' OpenAI notes, allowing sites to appear in search results without donating their archives to model training. The strategy effectively forces publishers to accept the new AI search paradigm if they want to maintain their visibility, while giving them a polite mechanism to protect their historical archives.[2]

This bifurcation forces webmasters to make a calculated choice.

Despite these granular controls, the entire system relies exclusively on the honor system. RFC 9309 explicitly notes that the protocol is advisory, stating that the rules are not a form of access authorization. The text file does not authenticate visitors, nor does it enforce access at the network level. A well-behaved crawler reads the file and complies; a malicious scraper simply ignores it and downloads the HTML anyway. Because the file is publicly visible at the root of the domain, security experts frequently warn that placing sensitive administrative paths in a robots.txt file merely provides attackers with a convenient map of the server's vulnerabilities.[3]

The timeline and impact of the Robots Exclusion Protocol.

This voluntary nature has led to significant friction with digital archival projects. In April 2017, the Internet Archive announced it would no longer strictly adhere to robots.txt directives for its Wayback Machine. The organization observed that rules designed for search engine optimization were inadvertently erasing digital history. When a business failed and its domain was parked by a new owner, the new owner would often deploy a blanket disallow rule to drop the site from Google. Because the Wayback Machine previously respected those rules retroactively, the entire historical record of the defunct site would vanish from the archive.[4]

'Over time we have observed that the robots.txt files that are geared toward search engine crawlers do not necessarily serve our archival purposes,' the Internet Archive stated in its policy update. 'Internet Archive's goal is to create complete snapshots of web pages... We see the future of web archiving relying less on robots.txt file declarations geared toward search engines, and more on representing the web as it really was, and is, from a user's perspective.' The decision prioritized the preservation of the public record over the temporary access preferences of domain owners.[4]

The shift meant that parked domains and defunct businesses could no longer vanish from the historical record simply because a new owner added a wildcard disallow rule. However, it also meant that publishers attempting to shield their content from AI ingestion realized that archival sites could serve as a backdoor for scrapers. If an AI company respects a publisher's robots.txt file but scrapes the Wayback Machine—which ignored the file to archive the page—the publisher's intellectual property still ends up in the training dataset. This loophole severely complicates the enforcement of digital boundaries across the modern web.

Today, the landscape of automated web traffic is vastly more complex than the 1994 standard ever anticipated. Major publishers now maintain extensive robots.txt files listing dozens of specific AI crawlers—from Anthropic's ClaudeBot to Google-Extended and PerplexityBot. According to recent industry tracking, more than 3.5 percent of the top websites actively block GPTBot, making it the most restricted crawler on the internet. Maintaining these files has become a full-time job for technical SEO teams, who must constantly audit server logs to identify new user agents and update their exclusion lists accordingly.

AI companies now operate separate crawlers for real-time search and model training.

Yet, the protocol remains a remarkably blunt instrument for the tasks it is now being asked to perform. It cannot distinguish between a crawler building a commercial AI model and an academic researcher compiling a dataset for a university study. It cannot negotiate licensing fees, enforce copyright boundaries, or verify the identity of the bot claiming a specific user agent. It simply asks a machine to politely look away, offering no technical recourse when a scraper decides that the value of the data outweighs the social contract of the web.

As the web transitions from an ecosystem of linked HTML documents to a vast repository of raw training data, the limitations of robots.txt are becoming impossible to ignore. Security professionals increasingly advise that sensitive data must be protected by robust authentication and web application firewalls, rather than polite requests. If a publisher genuinely wants to prevent an AI company from reading their content, the only guaranteed method is to place that content behind a hard paywall or a login screen, fundamentally changing the open nature of the internet.

The future of web scraping consent will likely require entirely new protocols designed specifically for the generative AI era. Proposals for cryptographic provenance, authenticated crawling, and machine-readable licensing tags are slowly gaining traction among standards bodies and publishers. These systems aim to replace the honor system with verifiable, cryptographically secure consent mechanisms. But until those systems are fully standardized and widely adopted, the internet remains entirely reliant on a 30-year-old plain text file that asks the world's most advanced artificial intelligence systems to kindly follow the rules.

Frequently asked

Does robots.txt hide my page from Google?

No. It only prevents Google from crawling the page. If another site links to it, Google can still index the URL and display it in search results without a description.

Can robots.txt stop AI from stealing my content?

It can ask compliant AI crawlers like GPTBot to stay away, but it cannot physically block access. Malicious or stealth scrapers can easily ignore the file.

Why does the Internet Archive ignore robots.txt?

The organization found that rules designed for search engine optimization were inadvertently erasing digital history, particularly when defunct websites were parked and blocked by new owners.

Sources

Source coverage

5 outlets

4 viewpoints surfaced

Web Publishers 35%Search Engine Operators 25%AI Model Developers 25%Digital Archivists 15%
  1. [1]Google Search CentralSearch Engine Operators

    Introduction to robots.txt

    Read on Google Search Central
  2. [2]OpenAIAI Model Developers

    OpenAI web crawlers and user agents

    Read on OpenAI
  3. [3]RFC Editor

    RFC 9309: Robots Exclusion Protocol

    Read on RFC Editor
  4. [4]Internet ArchiveDigital Archivists

    Robots.txt meant for search engines don't work well for web archives

    Read on Internet Archive
  5. [5]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Content Types stories with full source coverage and perspective breakdowns delivered to your inbox.