Robots.txt Generator
Builds a valid robots.txt from a simple form, with your sitemap and your choice about AI crawlers.
This keeps your whole site out of search engines. Never leave it on a live site.
Your robots.txt
Save this as robots.txt at the top of your site, then test it with the Robots.txt Checker. It asks crawlers to stay away, but doesn't protect private pages.
Why it matters
A robots.txt keeps crawlers out of areas that don't need crawling and points them to your sitemap. One wrong line can hide your whole site from Google, so it is worth building carefully.
How to fix it
- List only folders that really shouldn't be crawled.
- Add your sitemap address.
- Save it at the top of your site, then test it with the Robots.txt Checker.
What a good result looks like
A short file that blocks only what needs blocking, names your sitemap, and doesn't block CSS or JavaScript.
Common mistakes
- Leaving "Disallow: /" in place after launching a staging site.
- Blocking a page to hide it: use noindex or a login, since robots.txt is public.
- Listing secret folders, which tells everyone where they are.
Questions about the Robots.txt Generator
Where does robots.txt go?
At the very top of your site, at example.com/robots.txt. Each subdomain needs its own.
Does it remove pages from Google?
No. It stops crawling, but a blocked page can still appear if others link to it. Use noindex to keep a page out of results.
Check everything at once
Run our other instant checks on your site in one report.
Full SEO check-up