What robots.txt controls - and what it doesn't
A robots.txt file tells well-behaved search engine crawlers which parts of your site they're allowed to
request. That's all it does. It is a crawling instruction, not an indexing or ranking control - blocking a URL
in robots.txt does not reliably remove it from search results, because a page can still get indexed (sometimes
with no snippet) if other sites link to it. If your actual goal is to keep a specific page out of Google
entirely, you need a noindex meta tag or HTTP header on that page instead, not a robots.txt rule.
How this generator builds the file
Choose "Allow all robots" (the sensible default for almost every site) and optionally list specific paths to block underneath - admin areas, cart pages, internal search result URLs, or anything else you don't want crawled. Choose "Disallow all robots" only if you genuinely want to block every crawler from the entire site, which is rare and usually only appropriate for a staging environment. Add your sitemap URL and it's appended automatically, which helps crawlers discover your sitemap without needing to find it independently.
Where the finished file has to live
robots.txt only works from one exact location: the root of your domain, reachable at
https://example.com/robots.txt. A copy placed in a subfolder is simply ignored by every major
crawler - there is no alternate location that works.
Mistakes to avoid
A robots.txt file is short, so one wrong line can have a large effect. The most damaging mistake is a rule that blocks the whole site, which tells search engines to stay away from every page. If your pages disappear from search after a site launch or a move, this is one of the first places to look.
- Do not block your CSS or JavaScript files, because search engines need them to display your pages the way visitors see them.
- Do not use robots.txt to hide private content. The file is public, and a blocked address can still be listed if other sites link to it. Use a password or a noindex rule for anything sensitive.
- Keep paths exact and begin them with a slash, and remember that they are case sensitive.
- Add your sitemap address so crawlers can find your important pages quickly.
Test before and after publishing
After you upload the file, open it in your browser at the root of your domain and check that it matches what you generated. Then use the robots.txt report in Google Search Console to confirm that the pages you care about are still allowed.