Robots.txt Generator

Write crawler rules with presets, including one that blocks AI training crawlers.

Start from a preset
User-agent
Allow
Disallow
Sitemap URLs, one per line

robots.txt asks crawlers not to visit a path. It does not hide anything, so never use it to protect private pages.

robots.txt
User-agent: *
Disallow: /admin/
Disallow: /api/

Sitemap: https://example.com/sitemap.xml

How to Write a robots.txt

1

Start from a preset

Allow everything is the right default for most sites. The typical preset blocks the paths that usually should not be crawled, and there is one for blocking AI training crawlers.

2

Adjust the rules

Each group targets a user-agent. Put one path per line under Allow or Disallow. A more specific group for a named bot overrides the wildcard group for that bot.

3

Add your sitemap and publish

The sitemap line helps crawlers find your URLs. Download the file and put it at the root of your domain, since robots.txt is only read from there.

Features

Multiple user-agent groups with their own rules
Allow and Disallow paths, one per line
Sitemap lines appended at the end where they belong
Preset for blocking AI training crawlers such as GPTBot and CCBot
Presets for allow all, block all and a typical site
Live output as you edit
Copy or download the finished file
Free, browser based, no sign-up

Frequently Asked Questions

At the root of the domain, so example.com/robots.txt. Crawlers only look there, and a file in a subdirectory is ignored completely.

No, and this is the most common misunderstanding. It asks well-behaved crawlers not to fetch a path. The file is public, so listing a secret path there advertises it. Use authentication for anything private.

Not reliably. A blocked page can still be indexed from external links, showing with no description. To remove a page use a noindex tag, and make sure the page is not blocked so the tag can be read.

You can ask them not to crawl, and the major ones such as GPTBot and CCBot document that they honour robots.txt. The preset here adds those rules while leaving search crawlers allowed.

Crawlers assume everything is allowed, which is fine for most sites. A missing file is not an error.

A crawler uses the single most specific group that names it, and ignores the rest. So a Googlebot group completely replaces the wildcard group for Googlebot rather than adding to it.

Google ignores it. Bing and some others respect it. If Google is crawling too aggressively, adjust the rate in Search Console instead.

Yes, completely free with no sign-up.

Need a Custom Tool or Application?

We build production-grade web applications, SaaS platforms, and developer tools. Let's talk about your project.

or book a free call