Crawling and robots.txt · robots.txt file
Invalid or unsupported robots.txt rules
Typos, wrong-case paths or directives Google ignores, such as noindex and crawl-delay, mean rules do not work as intended.
How this page is built
The robots.txt file on the test host has a line that reads Disalow: /private/, with one l, and a Noindex: /drafts/ line. Crawlers ignore both lines, so neither folder is blocked or kept out of search results.
The test host is robots-groups.techseotests.com, and its file is at https://robots-groups.techseotests.com/robots.txt. A host has only one robots.txt file, so this test has a subdomain of its own. Every other address on that subdomain redirects back to this site.
Why it matters
Crawlers skip any line in robots.txt they do not understand, without any warning. A misspelt directive, a missing colon or a rule Google does not support simply does nothing, so the pages it was meant to control are crawled as normal.
Google stopped reading noindex rules in robots.txt in 2019, and it has never read crawl-delay. Sites that still rely on them are not getting the result they expect.
How to check it
Read the file line by line and check every directive name against the robots.txt standard. Google’s robots.txt report in Search Console lists lines it could not parse. Crawl tools only read a robots.txt file for the hosts they crawl. Set the crawl to follow links to subdomains, or start a crawl at the subdomain, and look at the robots.txt report.
How to fix it
Correct the spelling of each directive and remove rules that crawlers ignore. Use a robots meta tag or an X-Robots-Tag header to keep pages out of search results.