About the Robots.txt Generator
robots.txt is a plain-text file at the root of your site (for example example.com/robots.txt) that tells crawlers which parts of the site they may visit. This generator has four modes:
- Standard: allows everything (
Disallow:with no path). - Block everything: for staging or development sites.
- Allow everything explicitly:
Allow: /. - Custom rules: write your own groups, for example separate rules for Googlebot and AI crawlers such as GPTBot.
You can add a crawl delay and any number of Sitemap: lines.
How to use the Robots.txt Generator
- Choose a mode. Use Custom to write rules for specific user agents.
- Add your sitemap URLs, one per line.
- Add a crawl delay only if a crawler is overloading your server.
- Save the output as
robots.txtin the root of your domain and check it in Google Search Console.
Example
Custom rules
User-agent: *
Disallow: /admin/
Disallow: /cart/
User-agent: GPTBot
Disallow: /
Sitemap: https://example.com/sitemap.xml
Frequently asked questions
Does robots.txt hide pages from Google?
No. It controls crawling, not indexing. A blocked page can still appear in results if other sites link to it. Use a noindex meta tag (on a crawlable page) to keep it out of results.
Is Crawl-delay supported?
Bing and some other crawlers respect it. Googlebot ignores it.
Can I block AI crawlers?
Yes. Add a group for each AI crawler’s user agent with
Disallow: /. Well-behaved crawlers follow it; robots.txt is a request, not an enforcement mechanism.