What Does the Robots.txt Generator Do?
This generator builds a correct robots.txt file from simple form choices — no syntax to memorize. Set a default policy (allow or block everything), list paths to disallow, add exceptions, point crawlers to your sitemap, set an optional crawl-delay, and with one checkbox block AI training crawlers (GPTBot, CCBot, Google-Extended) or image indexing. The finished file is ready to copy or download.
robots.txt is the first file well-behaved crawlers request from your site. It lives at the domain root and tells search engines which areas they may crawl — getting it wrong can accidentally hide your whole site from Google.
How to Create Your Robots.txt
- Choose the default policy for all robots.
- List paths to block, one per line (e.g.
/admin/,/cart/). - Add your sitemap URL — strongly recommended for faster indexing.
- Optionally block AI crawlers or image search.
- Click Generate, then upload the file to your site root so it is reachable at
yoursite.com/robots.txt.
Rules Worth Knowing
- robots.txt is not security — it is a polite request. Malicious bots ignore it, and blocked URLs can still appear in results if linked elsewhere. Use authentication or
noindexfor genuinely private content. - Blocking a page ≠ de-indexing it — to remove a page from Google, allow crawling and add a
noindexmeta tag instead. - Paths are prefix matches —
Disallow: /privateblocks/private/,/private.htmland/private-anything. - One file per host — subdomains need their own robots.txt.