Skip to content

SEO & Web

Robots.txt Generator

Build a correct robots.txt file from presets and rules — including crawl-delay, sitemap declaration, and per-bot policies — ready to upload.

User-agent: *
Disallow:

robots.txt prevents crawling, not indexing. Upload to your site root exactly at /robots.txt. Per RFC 9309.

Disallow Is Not De-Indexing

Blocking a path in robots.txt prevents crawling, not indexing: a URL that is blocked but linked from elsewhere can still appear in results as a bare URL — the one case where you want meta robots noindex instead (which requires the page to be crawlable). The other classic mistake: Disallow: /tmp/ pattern confusion — the directive is prefix-based, so /tmp blocks /tmpfile.html too. And an empty robots.txt (or none) is a valid, crawl-everything configuration; do not add rules to feel complete.

How the Generator Works

  1. Choose the default policy: allow everything, block everything, or custom rules.
  2. Add per-bot rules with presets (Googlebot, Bingbot, GPTBot, etc.) including disallowed paths.
  3. Add your sitemap URL — declaring it in robots.txt is the standard discovery mechanism.
  4. Copy or download the generated robots.txt for your site root.
Formula & Technical Standard
Syntax: User-agent / Disallow / Allow / Crawl-delay / Sitemap directives per RFC 9309.

Example Output

Block AI crawlers but allow search engines
Input: GPTBot: disallow all; Googlebot: allow all
Output: Two user-agent blocks with distinct policies
Per-agent blocks let you differentiate between search indexing and AI training crawlers.
Standard site with admin area
Input: Disallow: /admin/ and /cart/
Output: robots.txt excluding private paths
Excluding non-public paths keeps them out of search results and saves crawl budget.

Common Questions

Does robots.txt hide pages from Google?

No — it prevents crawling, not indexing. To truly exclude a page from the index use a noindex meta tag; robots.txt can even prevent Google from seeing that tag.

Where must robots.txt be placed?

Exactly at the site root (https://example.com/robots.txt). Subdirectory placements are ignored.