What robots.txt means
robots.txt keeps crawlers away from areas like admin pages and search results. It is a request, not a security control, and it does not reliably keep a page out of search results. One wrong line can block an entire site, which is a surprisingly common launch mistake.
Why it matters for your website
Robots.txt guides search engines away from areas that waste crawl time, like admin pages or endless filter URLs. One wrong line, though, can block your whole site from being crawled. It's also public, so it should never be used to hide sensitive pages.
An online store blocks crawling of its internal search result pages in robots.txt, so search engines focus on product and category pages.
Tips
- Check your robots.txt after every launch or migration.
- Use noindex, not robots.txt, to keep a page out of search results.
- Link to your XML sitemap from your robots.txt file.
Common mistakes
- Leaving a staging rule like 'Disallow: /' in place after launch.
- Blocking CSS and JavaScript files that Google needs to render your pages.


