Robots.txt Generator

Build a valid robots.txt file with crawler rules, blocked paths and your sitemap.

Block specific crawlers
robots.txt

        

Upload this file to the root of your domain so it is available at /robots.txt.

How to use the Robots.txt Generator

  1. Choose whether all robots are allowed or blocked by default.
  2. Add folders or URL paths to disallow, one per line (for example /admin/ or /cart).
  3. Optionally block AI crawlers, set a crawl-delay and enter your sitemap URL.
  4. Download robots.txt and upload it to the root of your domain.

About this tool

Use this robots.txt generator to build the file that sits at the root of your domain and tells search engine crawlers which parts of your site they may request. It is the right place to keep bots out of admin areas, internal search results and duplicate filtered pages, and to point crawlers at your XML sitemap.

This generator builds a correctly formatted file from simple options: a default allow or disallow policy, the paths to block, optional rules for specific bots (including AI crawlers such as GPTBot and CCBot), crawl-delay, and your sitemap location. Download the file and upload it to the top level of your website, e.g. https://example.com/robots.txt.

Frequently asked questions

Not reliably. It stops crawling, but a blocked URL can still be indexed if other sites link to it. To keep a page out of search results, allow crawling and add a noindex meta tag instead.

It must be at the root of the host, for example https://www.example.com/robots.txt. Files in subfolders are ignored, and each subdomain needs its own file.

No. Googlebot ignores the crawl-delay directive; Bing and some other crawlers respect it. Google adjusts its crawl rate automatically based on how quickly your server responds.

No. The file is public and well-behaved bots follow it voluntarily. Never rely on it to hide private content – protect sensitive areas with authentication.

Tick the option to block AI crawlers in the robots.txt generator to add Disallow rules for bots that collect training data, such as GPTBot and Google-Extended. Well-behaved AI companies respect these rules, but robots.txt is a request rather than an enforcement, so it will not stop crawlers that ignore it.