Does robots.txt protect private files?
No. Robots.txt is a crawler hint, not an access-control mechanism. Protect private resources with authentication.
DEVELOPER TOOL
Build a robots.txt draft with user-agent, path rules, and sitemap URL.
User-agent: * Disallow: /private/ Disallow: /admin/
User-agent selects the crawler group. Disallow and Allow entries are URL paths, one per line. Crawl-delay is an optional extension and is not supported by every crawler. These rules guide crawling; they do not secure private content.
Incorrect crawl rules can hide public pages from search. Review the generated file and test important URLs before publishing.
The robots.txt draft is generated locally.
No. Robots.txt is a crawler hint, not an access-control mechanism. Protect private resources with authentication.