Guide
Robots.txt T-shirt Jokes vs Real Syntax: What Google Reads
Most lines on the robots.txt designs are valid syntax; the jokes sit in the paths and in one field Google ignores. Crawl-delay isn’t supported, a file called dress.txt is never read, and robots.txt can’t keep a page out of results.

A robots.txt file is a short text file of rules telling crawlers which URLs they may request. Google’s introduction to robots.txt says it exists mainly to avoid overloading a site with requests. The format is now a standard, RFC 9309, the Robots Exclusion Protocol, published in 2022 and building on Martijn Koster’s original from 1994. Four designs in the top 100 print robots.txt rules; here is what a crawler would make of each.
Which robots.txt lines are valid?
Google’s robots.txt specification supports exactly four fields:
user-agent: the crawler a group of rules applies to; under RFC 9309, a crawler with no group of its own follows the group marked*.disallow: a path that may not be crawled.allow: a path that may be crawled, used to carve out exceptions.sitemap: the complete URL of a sitemap.
Paths match by prefix, and case matters: Google’s path table shows /fish matching /fish.html and /fishheads but not /Fish.asp. Field names are case-insensitive, so User-agent and user-agent are the same field. Anything after a # is a comment and is ignored. When an allow rule and a disallow rule both match, Google follows the most specific one, meaning the longest path.
What does Disallow: /mondays get right?
Disallow: /mondays is nearly a working file. The comment, the User-agent: * line, the three Disallow rules and the Allow: /happy-hour exception are all valid. Prefix matching even adds a bonus: the first rule would also block a URL such as /mondays-off.
The last line is the punchline. Crawl-delay: 2 coffees uses a field Google lists as unsupported, and RFC 9309 doesn’t define it either: the standard covers user-agent, allow and disallow lines, and only lets crawlers interpret other records, such as sitemaps, if they choose to. Googlebot skips the line whatever its value; “2 coffees” just makes it more obviously aspirational.
What happens with Disallow: / on a whole site?
A single slash blocks everything. In Google’s path table, / matches the root and every URL below it, so User-agent: * followed by Disallow: / shuts every crawler that respects the file out of the entire site. That is the scene on Blocked by robots.txt, where the comment “staging, remove before go-live” survived the launch, and on git blame robots.txt, which traces the same line to a Friday evening commit.
The first shirt adds a crawl report underneath: one URL discovered, 100% blocked. Blocked doesn’t mean invisible, though. Google’s introduction notes that a disallowed page can still appear in results, without a description, if other pages link to it. Nor is the file a lock: Googlebot and other respectable crawlers obey it, others might not. And once the line is fixed, Google’s specification says it generally caches robots.txt for up to 24 hours.
Is dress.txt a real robots.txt file?
Inside, almost; by name, no. dress.txt prints a valid group: User-agent: *, three Allow lines and two Disallow lines. But RFC 9309 requires the rules to live in a file named /robots.txt, all lowercase, at the top level of the site, and Google’s specification also asks for the top-level directory. No crawler would ever open a file called dress.txt.
Two smaller bends complete the joke. With no Disallow rule matching them, the three Allow lines change nothing, because by default there are no crawling restrictions. And Sitemap: /wardrobe.xml is a relative path, while Google wants a fully qualified URL, protocol and host included.
Robots.txt or noindex: which keeps a page out of Google?
Noindex does; robots.txt doesn’t. Google’s introduction says robots.txt is not a mechanism for keeping a page out of Google, and its page on blocking indexing with noindex explains the trap: if robots.txt blocks a page, the crawler never sees its noindex rule, and the page can still show up in results.
Specifying the noindex rule in the robots.txt file is not supported by Google.
WordPress shows how easily the two get mixed up. Its Reading settings documentation says the “Discourage search engines” box wrote Disallow: / into robots.txt up to version 5.2, and has added a noindex,nofollow robots meta tag since 5.3. The checked box jokes about that setting, while noindex, nofollow: introvert and x-robots-tag: noindex print the noindex side of the story.
Frequently asked questions
Does Google support Crawl-delay in robots.txt?
No. Google’s robots.txt specification supports four fields, user-agent, allow, disallow and sitemap, and names crawl-delay as unsupported. A Crawl-delay line does no harm, but Googlebot skips it. That is why the last line of Disallow: /mondays is a wish rather than a rule.
Can robots.txt remove a page from Google?
No. Google says robots.txt is not a mechanism for keeping a page out of its results, and a blocked URL can still appear without a description when other pages link to it. Noindex is the tool for that, and it only works if the page is not blocked, as Google’s noindex documentation explains.
Where must a robots.txt file be placed?
At the top level of the site, under the exact name robots.txt in lowercase. RFC 9309 sets that rule, and Google’s specification also asks for the top-level directory. A file anywhere else, or under another name, is not read, which is the hidden joke of dress.txt.