Crawling, robots & indexing directives

robots.txt Disallow

Requests compliant crawlers not to fetch matching URL paths on a hostname. Governed by RFC 9309, robots.txt controls crawling—not indexing or access authorization.

Verified

Syntax / Example

User-agent: GPTBot
Disallow: /

User-agent: *
Disallow: /admin/

Verify On A Live URL

curl -sI https://example.com/robots.txt | head -n 5 && curl -s https://example.com/robots.txt

Documented Facts For robots.txt Disallow

Metric or RuleDocumented ValueSource
Sites with a working HTTP 200 robots.txt84.9% (13.2% return 404)HTTP Archive Web Almanac 2025 (SEO Chapter)Checked November 25, 2026
Minimum parser size limit500 KiBRFC 9309: Robots Exclusion ProtocolChecked November 25, 2026
Standard cache lifetimeUp to 24 hoursRFC 9309: Robots Exclusion ProtocolChecked November 25, 2026
HTTP 5xx error on robots.txtCrawler MUST assume complete disallowRFC 9309: Robots Exclusion ProtocolChecked November 25, 2026

Official Specification & Google Behavior

Per RFC 9309, crawlers follow the most specific matching User-agent group and ignore all other groups, cache rules up to 24 hours, and read at least 500 KiB. A 5xx error on robots.txt forces complete disallow; a 4xx permits full access.

SEO & Indexing Impact

Saves crawl capacity on huge sites, but blocking an already-linked URL can leave it indexed without a description and hides any noindex tag on the page.

Backlink Monitoring Verdict
If robots.txt disallows Googlebot on a page carrying a sold link, Google never fetches the page or reads the backlink.

Common Pitfalls

  • Adding a named group (e.g., User-agent: OAI-SearchBot) without repeating Disallow: /admin/ causes that bot to ignore User-agent: * rules.
  • Treating robots.txt as security—RFC 9309 explicitly states rules are not access authorization, and user-fetch AI bots often bypass them.

Frequently Asked Questions

Does Disallow in robots.txt remove a page from Google?
No, Disallow stops crawling, not indexing. If other sites link to the URL, Google may still index the address without a description.
What happens if my robots.txt returns a 500 error?
Under RFC 9309, a 5xx server error on robots.txt instructs compliant crawlers to assume complete disallow and pause crawling.
Why must I repeat Disallow: /admin/ inside named bot groups?
Because crawlers match only the most specific User-agent group and ignore User-agent: * once a specific group matches.

Primary Sources

Verified

Related Research Guides