Skip to content
Language:en

robots.txt generator

Write a robots.txt file: blocked folders, allowed paths, sitemap and an option to block AI crawlers.

By default
Block AI crawlers

Runs entirely in your browser. Your files never leave your device.

About this tool

The robots.txt file at the root of a website tells search engine crawlers which parts they may visit. Choose whether everything is open or closed by default, list the folders to keep out, such as an admin area or a shopping cart, add exceptions with Allow rules and point to your sitemap so new pages are found quickly.

A single option also adds rules for the crawlers that collect pages to train AI models or feed AI answer engines, for sites that prefer to opt out. Download the file and upload it as robots.txt at the root of your domain. Remember that robots.txt is a polite request, not a lock: private content still needs a password.

How it works

  1. Choose whether the site is open or closed to crawlers.
  2. List the paths to block and the exceptions to allow.
  3. Add your sitemap address and optional crawl delay.
  4. Download robots.txt and upload it to the root of your site.

Paths are matched from the start of the URL; * stands for any characters and $ for the end of the URL. Google ignores Crawl-delay, while some other engines respect it.

Worked example

An online shop wants its admin area and cart kept out of search results, but its help pages crawled. The file becomes: User-agent: *, Disallow: /admin/, Disallow: /cart/, Allow: /admin/help/ and a Sitemap: line with the full sitemap URL.

Ticking the AI option adds one block per known AI crawler with Disallow: /, for sites that prefer to opt out.

Good to know

  • Disallow stops crawling, not indexing: to keep a page out of results, use a noindex meta tag and leave it crawlable.
  • Never list secret folders in robots.txt; anyone can read the file.
  • Test the file with your search engine’s webmaster tools after uploading it.

Frequently asked questions

Does Disallow remove a page from Google?
Not always: a blocked page can still be listed if other sites link to it. To keep a page out of results, let it be crawled and add a noindex meta tag instead.
Which AI crawlers are blocked by the option?
GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, anthropic-ai, Google-Extended, CCBot, PerplexityBot, Bytespider, Applebot-Extended and meta-externalagent, which publicly document that they follow robots.txt.
Where does the file go?
At the root of the domain, exactly at https://yoursite.com/robots.txt. Each subdomain needs its own file.