Robots.txt Generator
Build a robots.txt with per-bot rules, sitemaps, and one-click AI-crawler presets
One-click presets
Presets replace the rule groups below — sitemap URLs are kept.
Rule group 1
Generated robots.txt
User-agent: * Disallow:
Upload the file to your site root so it is reachable at https://yourdomain.com/robots.txt.
How robots.txt works
robots.txt is a plain-text file served from the root of a domain (always at /robots.txt) that tells crawlers which paths they may fetch. It is organized into groups: each User-agent line names a bot, and the Allow/Disallow lines below it list path prefixes. A crawler obeys the most specific group that matches its name and falls back to the * group otherwise. The standard was proposed in 1994 and formalized as RFC 9309 in 2022.
Crucially, robots.txt is advisory, not enforcement. Well-behaved crawlers (Googlebot, Bingbot, GPTBot, ClaudeBot) respect it, but nothing technically prevents a bot from ignoring it. It is also not an indexing control: a page blocked in robots.txt can still appear in Google results if other sites link to it — Google just cannot read its content. To keep a page out of search results, use a noindex meta tag or authentication instead, and note that noindex only works when the page is not blocked from crawling.
Blocking AI crawlers is a genuine tradeoff. Disallowing bots like GPTBot (OpenAI), CCBot (Common Crawl), anthropic-ai, and Google-Extended (Gemini training) opts your content out of model training datasets — but it can also reduce your visibility in AI assistants and AI-powered search answers that increasingly drive referral traffic. Blocking Google-Extended does not affect Googlebot or your normal search rankings; the two are deliberately separate. There is no universally right answer: publishers protecting paid content often block, while sites competing for discovery often allow.
❓Robots.txt Generator FAQ
🔗Related Tools
Meta Tag Extractor
Extract and analyze meta tags from any website
Website Speed Tester
Get real Lighthouse scores and performance insights
Social Media Preview
See how your URLs appear on Facebook, Twitter, LinkedIn
URL Encoder/Decoder
Encode and decode URLs with different encoding types
Tip: Explore our complete toolkit to find more tools that can help with your workflow. Each tool is designed to work seamlessly with others for maximum productivity.
Disclaimer: A2ZKit's tools, calculators, cheat sheets, and articles are provided for general information and educational purposes only, on an "as is" basis without warranties of any kind. They are not financial, investment, tax, accounting, medical, health, or legal advice, and are not a substitute for a qualified professional. Results may be inaccurate or incomplete — verify independently and consult an appropriate professional before making any decision. Some tools process files — such as PDFs and images — entirely in your browser; you are responsible for keeping your own backups, and we are not liable for any data loss, file corruption, or inaccurate output. You use A2ZKit entirely at your own risk. By using the site you agree to our Terms of Service.