Skip to content
Novus Examples
txt275 B

robots.txt - field case, tabs and indentation

A robots.txt using upper-case, mixed-case and indented field names, a tab-indented rule, a value with no space after the colon, and both trailing and full-line comments. For testing that field names are treated case-insensitively while path values stay case-sensitive.

Preview — first 11 linestxt
# robots.txt - field-name case, indentation, tabs and inline comments
   USER-AGENT: ExampleBot
	Disallow: /Private/
DiSaLlOw: /tmp/
Allow:/tmp/keep/

User-Agent: *
Disallow: /Admin/      # trailing comment on a rule line
   # fully indented comment line
Allow: /Admin/help/

Specifications

Seed
70400
Site
example.com (fictional)
Format
robots.txt (RFC 9309)
Groups
2
Indentation
spaces and tabs
Colon Spacing
with and without

Testing contract

Expected to pass
Scenario
Parse the file, then test /Private/x, /private/x and /tmp/keep/x for ExampleBot.
Expected result
All five rules are recognised despite the casing and indentation; /Private/x is disallowed but /private/x is allowed because paths are case-sensitive; /tmp/keep/x is allowed by the space-less `Allow:/tmp/keep/`.

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 - field case, tabs and indentation” 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.