$ nuxt-seo tools
Free Robots.txt Generator
Write and test crawler rules, add sitemap references, then download the finished robots.txt file.
Test Your Rules
Directives
Core Directives
User-agent: *applies to all crawlers
Disallow: /block entire site
Allow: /explicitly allow (for exceptions)
Crawl-delay: 10wait 10s between requests (Bing/Yandex)
Sitemap: URLspecify sitemap location
Content-Usage IETF
Uses y/n values
Content-Usage: search=yallow search indexing
Content-Usage: train-ai=ndisallow AI model training
search=y, train-ai=nContent-Signal Cloudflare
Uses yes/no values
search=yesallow search indexing
ai-input=nodisallow live AI answers
ai-train=nodisallow model training
Pattern Matching
*matches any sequence
$matches end of URL
/*.pdfall .pdf files
/*.php$URLs ending in .php
Common questions
What is a robots.txt generator?
A robots.txt generator writes crawler rules and sitemap references in the expected text format. Crawlers choose whether to follow these rules, so the file cannot enforce access control.
How do I block AI bots with robots.txt?
Add User-agent rules for AI crawlers like GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), and Google-Extended (Gemini training). Set Disallow: / under each to block them. Note: AI companies may not respect robots.txt for training data already collected.
What is the meta robots nofollow directive?
The nofollow directive tells search engines not to follow links on a page. It belongs in a meta robots tag or link rel attribute, not robots.txt. Robots.txt only describes crawling access.
Where do I put my robots.txt file?
Place robots.txt in your website's root directory (e.g., example.com/robots.txt). It must be accessible at this exact URL. Search engines check this location automatically. Most web frameworks have built-in ways to generate this file.
Can robots.txt block pages from Google?
Robots.txt prevents crawling but not indexing. Blocked pages can still appear in search results if linked from other sites. To fully remove pages from search results, use the meta robots noindex tag or X-Robots-Tag HTTP header instead.
How do I test my robots.txt file before publishing?
Use the Rule Tester above: enter a URL path and pick a user-agent to see if your current rules would allow or block it. You can also select "Test Live Robots.txt" to import an already-published robots.txt file and test changes against it before you deploy.
Generated one file. Nuxt SEO Pro audits crawl and indexing issues across the rest of your site.