robots.txt Generator
Build a syntactically valid robots.txt with User-agent rules, Disallow / Allow paths, a Sitemap line and optional Crawl-delay. Copy or download the file.
# robots.txt — generated by sayakwebdesigner.in/tools/robots-txt-generator
User-agent: *
Disallow: /admin/
Disallow: /api/
Disallow: /*.json$
Disallow: /cart/
Disallow: /checkout/
User-agent: GPTBot
Allow: /
User-agent: Googlebot
Sitemap: https://www.example.com/sitemap.xmlA broken robots.txt is one of the easiest ways to make a good site invisible. The last five audits we ran had sites that were either disallowing their own sitemap, disallowing an entire subdirectory that happened to contain their main content, or — most commonly — had copied a WordPress default from a blog post in 2017 that forbade /wp-content/uploads/, which is where every image on the site lives. The result in every case was pages Google could find but could not render.
The tool below writes a syntactically valid file for you. Add a User-agent rule for anyone you want to treat differently (an AI crawler you want to allow, a scraper you want to block), set Disallow / Allow paths per rule, optionally add a Crawl-delay for lower-tier bots, and point to your sitemap. Download the file, drop it at your site root, verify it with Search Console → robots.txt tester.
One rule of thumb we use after twenty years of fixing these: start permissive. "Allow everything, Disallow nothing" is a perfectly good robots.txt for most business sites, and every new rule should have a reason you can state out loud. "Disallow: /cart/" because cart URLs are ephemeral and personal. "Disallow: /api/" because the JSON responses pollute the index. "Allow: GPTBot" because we want to be cited by ChatGPT. If you cannot justify a rule in one sentence, remove it before shipping.
Frequently asked questions
At the site root — https://example.com/robots.txt — not inside a subfolder. Crawlers fetch exactly that URL and ignore files in other locations. If your site is on a subdomain (shop.example.com), that subdomain needs its own robots.txt.
You can, but it does not add real security — robots.txt is a public, advisory file and polite crawlers obey it; malicious bots read it as a treasure map. Use authentication and noindex meta tags for anything sensitive, and treat robots.txt as a crawl-budget tool rather than a security layer.
OpenAI's GPTBot, Google-Extended, ClaudeBot and PerplexityBot all publicly honour robots.txt. If you want your content to appear in AI answers, do not disallow them — the biggest signal we see in GEO work right now is sites that unknowingly blocked these bots at launch and still cannot be cited. Add them as explicit Allow rules if you want to be visible in AI search.
Yes, with the wildcard $ end-of-URL match. "Disallow: /*.pdf$" blocks all PDF URLs. "Disallow: /*.json$" blocks raw JSON endpoints — commonly used for API URLs you do not want indexed. Not every crawler supports wildcards; Googlebot, Bingbot and most of the mainstream ones do.
Highly recommended. It is how crawlers that arrive at your robots.txt are told where your sitemap lives, which matters because they do not always find it on their own. Submit it in Search Console as well — the two signals are additive, not alternatives.
Most modern sites do not need one. Googlebot ignores Crawl-delay entirely and manages its own rate. Bingbot and Yandex honour it; 5–10 seconds is reasonable if your server is overloaded, but the correct fix is usually faster pages or a CDN rather than slowing crawlers down.
Tell us what is slowing your business down.
A 30-minute call with a senior engineer — not a salesperson. You leave with an architecture sketch and an honest cost range, whether or not you hire us.
Direct line
+91 70033 91355Mon–Sat · 9:30 AM – 7:30 PM IST · Sealdah, Kolkata