Skip to content
Novus Examples
txt300 B

robots.txt - block everything except one path

A robots.txt that disallows the entire site for every crawler while allowing one media path for a single image agent. For testing full-block handling and the common misconception that a Disallow removes a URL from a search index.

Preview — first 11 linestxt
# robots.txt - a full crawl block with one narrow exception.
# Blocking a URL here does not remove it from an index: a blocked page can still
# be listed from inbound links. Use a noindex header or meta tag for that.

User-agent: Googlebot-Image
Allow: /media/
Disallow: /

User-agent: *
Disallow: /

Specifications

Seed
70400
Site
example.com (fictional)
Format
robots.txt (RFC 9309)
Groups
2
Effect
Disallow: / for all agents
Exceptions
1

Testing contract

Expected to pass
Scenario
Ask the parser whether / , /media/logo.png and /media/logo.png for a generic agent are crawlable.
Expected result
Everything is disallowed for the unnamed agent; only Googlebot-Image may fetch /media/logo.png; the tool should also note that blocked URLs can still be indexed from inbound links.

What is a .txt file?

TXT is a plain-text file containing unformatted character data with no styling or structure beyond line breaks. Its interpretation depends on character encoding, most commonly UTF-8, and on line-ending convention. It is the most universal and portable text container.

How to use this file

Use an example TXT to test encoding detection, line-ending (LF versus CRLF) handling, and any tool that reads or streams raw text input.

How to use this file for testing

“robots.txt - block everything except one path” is a deterministic Novus Examples fixture for Web assets, Web scraping, Editor testing. Favicons, web app manifests, service workers, robots and sitemap files, Open Graph images, and .well-known resources — for testing web tooling, crawlers, PWA installers, and asset pipelines.

Documented properties for this file: seed 70400 · robots.txt (RFC 9309). Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Web-platform fixtures are standards-compliant samples against fictional example.com data. Test crawlers, PWA installers and manifest validators, favicon/icon pipelines, service-worker registration, or .well-known parsers against the documented structure.

Generated by generation/web_p7.py. Free for any use, no attribution required — license.