robots.txt Generator — Per-Bot Rules, WordPress, Next.js and AI-Blocking Presets
Build robots.txt with per-crawler groups, Allow/Disallow, Crawl-delay and Sitemap lines, presets for WordPress, Next.js and AI bots, and a syntax checker.
Group 1
Group 2
Group 3
Rules are written longest path first: modern crawlers pick the longest match, and older top-down parsers reach the same decision. Non-ASCII characters in paths are encoded automatically.
- Google ignores Crawl-delay; Bing and Yandex read it. For Google, slow crawling down with server responses (429/503).
- robots.txt is voluntary: the major AI bots honour it, but nothing enforces it. Google-Extended only affects Gemini training, not Google Search.
3 groups · 6 rules · 1 sitemaps · 241 bytes. Serve it at https://example.com/robots.txt (the root).
Check an existing robots.txt
When to use the robots.txt Crawl Directive Generator
Groups per bot
Write separate rules for each User-agent — Googlebot, Bingbot or AI bots — with Allow, Disallow, Crawl-delay and Sitemap lines. Non-ASCII paths are encoded automatically.
Safe presets
WordPress closes /wp-admin/ but keeps admin-ajax.php open; Next.js closes /api/ without blocking the JavaScript Google needs to render pages; there is also a preset that blocks AI training bots.
An order every parser understands
RFC 9309 picks the rule with the longest path. Rules are written longest first, so older parsers that read top-down reach the same decision.
Line-by-line validation
Paste an existing robots.txt to find typos such as Dissallow, paths without a leading slash, rules before any User-agent, or incomplete sitemap addresses.
Frequently asked questions
Where does robots.txt go?
In the root of each host, for example https://example.com/robots.txt. A subdomain such as blog.example.com needs its own robots.txt.
Does Google read Crawl-delay?
No. Bing and Yandex read it, while Google sets its own pace and slows down when the server answers 429 or 503.
Does blocking AI bots hurt SEO?
Not for Google Search: Google-Extended only controls Gemini training, and Googlebot stays allowed. Remember that robots.txt is voluntary; badly behaved bots can ignore it.
How fast are changes picked up?
Google usually caches robots.txt for up to 24 hours. To speed it up, request a recrawl in the robots.txt report of Google Search Console.
Similar tools
- Canonical Tag Checker & Link AuditorCheck a page's canonical the way Google reads it: in <head> or pushed into <body>, self or another URL, duplicates, the Link header, og:url and noindex conflicts — from a live page or pasted HTML.
- hreflang Tag & ISO Region GeneratorBuild hreflang annotations with ISO 639-1 / 3166-1 checks (en-UK → en-GB), x-default and self-reference checks, as HTML <link>, an XML sitemap or an HTTP Link header.
- JSON-LD Schema Markup GeneratorCreate Schema.org JSON-LD for Article, Product, FAQPage, LocalBusiness, BreadcrumbList and Organization with required-field checks, as a <script> tag or .json.
- Long-Tail SEO Keyword Variation GeneratorLong-tail keyword ideas from seed keywords: questions, prepositions, buying intent, comparisons, year and A–Z prompts, in Indonesian or English, exported as .txt or .csv.