How to Check What robots.txt Allows Crawlers to Read
A robots.txt file gives cooperating crawlers instructions for that protocol, hostname and port. It does not enforce authentication. Check the file at the root of the exact public origin you are testing, since another subdomain or protocol can serve different instructions.
Identify the applicable rules
Read the group for the relevant user agent and compare the exact URL path with its allow or disallow entries. Review broad exclusions for assets and public navigation. Keep test environments private through real authentication or another proper access control. Listing a private path in robots.txt is not a way to shield it from visitors.
Compare crawling with indexing
A crawl restriction is different from a page-level noindex. A crawler needs to fetch a page to see its indexing directive, so a robots block can prevent it from reading noindex. Use the platform’s supported controls for each purpose, and keep confirmed public canonical URLs in the sitemap.
Check the live result
Request the current file after a change and verify the plain-text response. Review a representative public page, a protected route and the sitemap. Use your authorized Search Console property to inspect the actual URL where available. Preserve the original file so an unintended broad rule can be reverted quickly.
Related guides
- How to Check an XML Sitemap Before Submitting It
- How to Choose and Verify Website Canonical URLs
- A Technical SEO Launch Checklist for Website Owners
- SEO and Website Performance category
Official references
Ferkesh Hosting. Last reviewed .
Thanks for your feedback!