Robots.txt Generator
Create a robots.txt file without remembering the syntax. Choose what crawlers may visit, list the folders to keep out, add your sitemap and download the file.
How to use this tool
- Pick the default rule. Most sites should allow crawling.
- List folders you do not want crawled, such as admin or cart pages.
- Add your sitemap URL.
- Download the file and upload it to the root of your site so it is available at /robots.txt.
Robots.txt is not a way to hide pages
A disallowed URL can still appear in search results if other sites link to it, and the file itself is public. To keep a page out of search results, use a noindex meta tag or password protection. Never list private URLs in robots.txt.
Crawl-delay
Google ignores the crawl-delay line. Some other crawlers respect it. Leave it empty unless you have a specific reason.
Want to go deeper? Read our guide: Robots.txt Explained: What It Does and How to Write One.
Frequently asked questions
Where do I put the file?
In the root folder of your domain, so it loads at https://yourdomain.com/robots.txt. Each subdomain needs its own file.
Will blocking AI crawlers affect my Google rankings?
Blocking AI training crawlers does not change normal Google Search crawling. Google-Extended only controls use of content for certain AI products. Decide based on your own policy.