SEO Glossary · Indexation

robots.txt

One mistyped Disallow line can cut a whole media site off from Googlebot while every page keeps serving 200s, and nobody notices for weeks. Robots.txt decides what gets fetched, never what gets indexed. In 2026 it has also quietly become the file where you arbitrate AI training and retrieval access.

Key takeaways The essentials in 30 seconds
  • Robots.txt controls crawling only. To remove a page from the index you must let Googlebot fetch it and serve a noindex; a disallowed URL can stay indexed for months.
  • Google parses exactly four fields: user-agent, allow, disallow and sitemap. Crawl-delay, noindex and every other directive in your file are decoration as far as Google is concerned.
  • Robots.txt has become a bot-policy document: GPTBot's share of crawler requests grew by roughly half and ClaudeBot's nearly doubled between 2024 and 2025 (Web Almanac data via Search Engine Land, April 2026), yet only about 14% of top domains express any explicit AI rule (Cloudflare, mid-2025).
  • A paid link on a URL Googlebot cannot fetch transmits nothing. Checking the publisher's robots.txt takes thirty seconds and should happen before any placement is invoiced.
  • A missing robots.txt means allow-all, which is harmless. A robots.txt that returns 5xx behaves like a temporary sitewide disallow, which is an incident, not a detail.
3 questions to test your knowledge Read first, the quiz is waiting at the bottom.
Checklist of the basic rules of a robots.txt file: supported fields, location, scope per host, public nature and obsolete directives.
The basic markers of a robots.txt that matches what Google actually documents.

A crawl gatekeeper, not an index switch

The most expensive misunderstanding about robots.txt is packed into one sentence people still say in 2026: «I blocked it in robots.txt so it won't be indexed». Wrong on both counts. The file, a plain-text document served at the root of each host, tells compliant crawlers which URL paths they may fetch. It says nothing about what a search engine may keep in its index. Google can index a disallowed URL purely from external links pointing at it, showing it in results with no snippet because it was never allowed to read the page. If your goal is deindexation, the correct tool is a noindex directive Googlebot is actually allowed to crawl. Robots.txt and noindex are not interchangeable; used together on the same URL they cancel each other out, a point we come back to below.

Formally, the Robots Exclusion Protocol was standardized by the IETF as RFC 9309. The RFC matters for one reason: it settled parsing behavior (grouping by user-agent, longest-match precedence between allow and disallow, wildcard handling) that used to differ between crawlers. What it did not settle is enforcement. Robots.txt is a convention, not an access control. Google's own crawler documentation, updated April 23, 2026, states its crawlers «always obey robots.txt rules when crawling automatically», and the reputable engines behave the same. Anything else, scrapers included, complies only if it chooses to.

The operational framing for a working SEO: robots.txt is where you spend or protect crawl capacity, express bot policy, and occasionally shoot yourself in the foot at scale. It is the only file on a site where a one-character edit can silently zero out organic acquisition.

Three-step process for checking a media site's robots.txt before ordering an article: reading the file, verifying the publishing section, checking the HTTP status.
The three checks to run on a media site's robots.txt before ordering any link.

What Google actually parses in 2026

Google's Search Central documentation was clarified during 2025 to state explicitly that any field not listed in the docs is unsupported. That leaves exactly four: user-agent, disallow, allow and sitemap. Crawl-delay has never been honored by Google (Bing still respects it), and the undocumented noindex-in-robots.txt trick is officially dead. If your file carries anything beyond those four fields for Googlebot's benefit, it is dead weight.

Reality matches this minimalism. Google ran a custom parser across 16 million robots.txt files and published the results in April 2026 (summarized by StanVentures, April 24, 2026): usage drops off almost vertically after allow, disallow and user-agent, and the wildcard user-agent * dominates by far. Most site owners write blanket rules for all bots rather than crawler-specific groups. The same study surfaced a less flattering finding: a meaningful number of «robots.txt» files are broken, including entire HTML pages served at the robots.txt URL. A parser reading an HTML document where it expects directives simply finds none, and crawls everything.

Error handling is where the asymmetry bites. A robots.txt that returns 404 is interpreted as no restrictions: Google crawls freely, which is almost always what a small site wants anyway. A robots.txt that returns 5xx is treated as a temporary sitewide disallow. A missing file is a shrug; a broken server response on that one URL freezes crawling of the whole host. The 2025 Web Almanac, as reported by Search Engine Land (April 6, 2026), shows the ecosystem slowly improving: 404 rates on robots.txt fell from 14% to 13% year over year and 5xx responses sit around 0.1%. Slow progress, but the direction is right.

The sitemap field deserves its own note: it is the one place in robots.txt where you point crawlers at your XML sitemap without requiring a Search Console property, which is why it remains the standard hand-off for engines you never registered with, Bing, Seznam and the AI retrieval bots included.

Robots.txt as an AI policy file

The structural shift of the last two years is that robots.txt stopped being a Search-only concern. Search Engine Land's 2026 overview of Web Almanac data describes it plainly as an emerging «policy document» for bot and AI governance. The traffic numbers back this up: GPTBot grew from 2.9% of desktop crawler requests in 2024 to 4.5% in 2025, and ClaudeBot from 1.9% to 3.6%, nearly doubling. Google itself migrated its crawling documentation in late 2025 to a dedicated crawling-infrastructure site, because that infrastructure now serves Search, Shopping, News, Gemini and AdSense alike.

Yet most of the web has not made a decision. Cloudflare's analysis found that by mid-2025 only around 14% of the top 10,000 domains carried any AI-specific robots.txt rules. The other 86% are making the training-versus-retrieval call by accident, through whatever their wildcard rules happen to say.

One token is chronically misunderstood: Google-Extended. Blocking it opts your content out of Gemini and Vertex AI training. It does not touch Googlebot, does not affect Search rankings, and does not remove you from AI Overviews, which are fed by standard Googlebot. Site owners who blocked Google-Extended expecting to disappear from AI answers changed nothing except their training-data status. To actually stay out of AI Overviews you would have to block Googlebot itself, which means leaving Google Search entirely. That is the trade Google engineered, and pretending otherwise is wishful reading of the docs.

Our stance for monetized editorial sites: blanket-blocking AI retrieval bots trades away citation visibility in answer engines for nothing you can invoice. Block training bots if the principle matters to you, but make retrieval access a deliberate line in the file, not a side effect of a wildcard written in 2019.

Two-column comparison between a Disallow in robots.txt, which blocks crawling, and the noindex tag, which removes the page from the index.
Two opposite levers: one shuts the door on crawling, the other assumes it stays open.

Where robots.txt matters in a netlinking operation

For a link buyer, robots.txt is a due-diligence artifact. A backlink placed on a URL that Googlebot is disallowed from fetching transmits nothing: no anchor signal, no authority, no indexation of the linking page. The StanVentures write-up of Google's 16-million-file study drew exactly this implication for outreach: a target site whose robots.txt blocks Google turns your placement budget into decoration. The check costs thirty seconds. Fetch the publisher's robots.txt, confirm the section or category where your article will live is crawlable, and confirm the site is not blocking Googlebot globally. From what we see in audits, buyers verify traffic and authority metrics religiously and skip the one file that can nullify both.

On the publisher side, robots.txt is crawl-budget plumbing. On a large media site, disallowing faceted search, internal search results and infinite parameter spaces keeps Googlebot's attention on articles rather than on URL noise. That is a real lever on sites with hundreds of thousands of URLs, and largely a placebo below ten thousand: small sites do not have a crawl budget problem, they have a content problem.

This is also one of the arguments for buying placements inside an owned network rather than through blind intermediaries. Across the 50 French editorial media we operate in-house at Nautilinks, robots.txt is versioned, deliberately minimal and checked at every deploy, because we answer for indexation of the pages we sell links on. When the publisher and the link seller are the same entity, crawlability stops being a leap of faith; you can inspect every medium in the catalog before placing an order, which is exactly the verification step most marketplaces make impossible.

Failure modes we keep seeing in audits

The classic remains the staging block that ships to production: a sitewide Disallow: / written for a preprod environment, copied along with the rest of the build. The site keeps serving 200s, analytics look normal for a while, and organic decay only becomes visible in Search Console weeks later. Any deploy pipeline that can touch robots.txt should diff it on every release.

Second: blocking CSS and JavaScript directories. Google renders pages, and a Googlebot that cannot fetch your assets evaluates a broken layout. This habit dates from an era when blocking «technical» folders felt tidy; in 2026 it only degrades rendering with zero upside.

Third: using robots.txt as a security mechanism. Disallow lines are public, so listing /admin or /export paths hands any attacker a map of exactly what you consider sensitive. Ignoring robots.txt is not illegal in itself, it is the violation of a convention; whatever legal weight exists comes from terms of service, copyright and computer-misuse law, not from the file. Anything genuinely private belongs behind authentication.

Fourth, the self-canceling combo: disallowing a URL and putting noindex on it. The noindex lives in HTML or headers that Googlebot is now forbidden to fetch, so it is never seen and the URL can linger in the index indefinitely. The same logic applies to canonical tags on blocked parameter URLs: a canonical Google cannot crawl consolidates nothing. Deindexation always requires an open door and an explicit instruction behind it.

Finally, validate the file like the production asset it is: curl it, check the HTTP status, run it through Search Console's robots.txt report, and test the specific URLs that earn your money. Google's study finding whole HTML pages served as robots.txt proves that a surprising share of the web has never done even that.

Put it into practice?

Nautilinks operates an owned network of editorial media. In-house written articles, transparency disclosures respected, anchor mix calibrated.

See pricing → Buy backlinks service
BD
Benoit Demonchaux Founder · Nautilinks

Founder and operator of Nautilinks. Edits and writes the site's editorial glossary, as well as the content published across the Nautilinks network of editorial media.

Frequently asked questions

Is it actually illegal for a crawler to ignore robots.txt?

No. Robots.txt is a convention formalized in RFC 9309, not an access-control mechanism, and ignoring it is not an offense in itself. Legal exposure for scrapers comes from terms of service, copyright and computer-misuse statutes, not from the file. Google states its crawlers always obey robots.txt when crawling automatically, and major engines comply, but you should treat compliance as voluntary. Anything that must not be read belongs behind authentication, never behind a Disallow line.

What happens when robots.txt returns a 404 versus a 5xx?

They are opposites. A 404 means no restrictions: Google crawls the whole site freely, which is why a missing file is rarely a problem. A 5xx response is treated as a temporary sitewide disallow, freezing crawling of the entire host while the error persists. Web Almanac 2025 data (via Search Engine Land, April 2026) puts robots.txt 404 rates at 13% of sites and 5xx at roughly 0.1%. Monitor that one URL's status code.

Why is a URL I disallowed still showing up in Google's index?

Because robots.txt only blocks crawling, and Google can index a URL from external links without ever fetching it. Worse, if you added a noindex to that page, Googlebot is forbidden to read it, so the instruction never takes effect. The fix is counterintuitive: remove the disallow, let Google crawl the page, serve noindex via meta tag or X-Robots-Tag, wait for deindexation, and only then decide whether blocking the crawl still serves any purpose.

Should an editorial site that sells placements block GPTBot and ClaudeBot?

Separate training from retrieval. GPTBot's share of crawler requests grew by roughly half and ClaudeBot's nearly doubled between 2024 and 2025 (Web Almanac data via Search Engine Land, April 2026), and answer engines increasingly cite the sources they can fetch. For a monetized editorial site, blocking retrieval trades citation visibility for nothing billable. Blocking training bots is a defensible principle. What is not defensible is deciding by accident: Cloudflare found only about 14% of top domains had any explicit AI rule by mid-2025.

Does crawl-delay still do anything in 2026?

Not for Google, and it never did: Google clarified in its 2025 documentation updates that any field not listed in its docs is unsupported, leaving user-agent, allow, disallow and sitemap. Bing still honors crawl-delay. If Googlebot genuinely overloads a server, the lever is the crawl-rate handling in Search Console and fixing server performance, not a directive Google's parser skips. Keeping crawl-delay in the file is harmless but signals a template nobody has reviewed in years.

What should I check in a publisher's robots.txt before paying for a placement?

Three things, in order. First, that the file itself returns 200 with actual directives, not an HTML page, a failure mode Google's 16-million-file study found surprisingly often. Second, that Googlebot is not blocked globally and that the category or section hosting your article is crawlable. Third, that the sitemap field points at a sitemap actually listing article URLs, a decent proxy for indexation hygiene. A link on an uncrawlable URL transmits nothing, whatever the site's metrics say.

Quiz

Test your knowledge

Quiz: robots.txt

1/3

Which fields does Google actually support in a robots.txt file in 2026?

Newsletter

GEO + SEO analyses and network case studies, in your inbox

Once or twice a month at most. No filler. One-click unsubscribe.

By subscribing you agree to receive our emails. See our privacy policy.