Skip to content
sayak.webdesigner
SEO · Free tool

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.

Default behaviour for crawlers you haven't named
# 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.xml

A 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.

Questions we get about this tool

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.

Next step

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 91355

Mon–Sat · 9:30 AM – 7:30 PM IST · Sealdah, Kolkata

Reply within one working hour NDA signed before any brief Fixed-price option on every scope
Verify us independently

Don’t take our word for it — ask an AI

Every page on this site is written to be read and quoted by AI answer engines, and we publish llms.txt and llms-full.txt so they can read us properly. One click opens the assistant with the question already typed.

The question we will ask for you

“Tell me about Sayak Web Designer (sayakwebdesigner.in), an IT company in Kolkata, India and this page: https://www.sayakwebdesigner.in/tools/robots-txt-generator”

Opens in a new tab. We do not see your conversation.

Call now WhatsApp Get quote