🤖 SEO & Developer Tools

robots.txt Generator

Build, validate & test crawlers — 100% private in your browser.

🤖 SEO & Developer Tools · No Upload

robots.txt Generator & Tester

Build a robots.txt visually with real-world presets, then test any URL against it using the actual Google-spec matching algorithm — see exactly which rule wins and why.

🔒 Runs entirely in your browser — nothing is uploaded.

Quick presets

WordPress, Shopify, AI crawlers & more — one click to start

User-agent groups

Each group targets one or more crawlers with its own rules.

Sitemaps (global)

Host directive (Yandex only)

robots.txt — live preview Live
0 bytes 500 KiB limit

Paste an existing robots.txt below, or click "Use generated robots.txt" to test what you just built.

Single URL test

Batch test

Directive reference

DirectiveWhat it doesSupport
User-agentStarts a group targeting one or more crawlers by name.All major crawlers
DisallowBlocks crawling of a path (empty value = allow all).All major crawlers
AllowExplicitly permits a path, usually to carve out an exception inside a disallowed folder.Google, Bing, most modern crawlers
SitemapPoints crawlers to your XML sitemap. Global — applies regardless of which group it's under.All major search engines
Crawl-delayRequests a minimum delay (seconds) between requests.Bing, Yandex — ignored by Google
HostHistorically told Yandex your preferred mirror/domain.Yandex only, largely obsolete today
NoindexWas an unofficial attempt to keep pages out of the index via robots.txt.Not supported by Google since Sept 2019

Where the file must live

robots.txt must be placed at the root of your site — https://example.com/robots.txt — never in a subfolder like /pages/robots.txt, which crawlers will not look for. Each subdomain needs its own file: shop.example.com and www.example.com are treated as separate hosts. Paths in robots.txt are case-sensitive (/Folder and /folder are different), and the file must be saved as plain UTF-8 text.

robots.txt (crawl) vs. meta robots noindex (index)

robots.txt tells crawlers which URLs they may fetch. It does not reliably keep a URL out of search results — if other pages link to a blocked URL, Google can still show that URL in results (typically without a snippet), because it never crawled the page to see any noindex instruction.

A meta robots noindex tag (or X-Robots-Tag: noindex header) tells crawlers not to index a page they're allowed to crawl. This is the correct tool when you want a page to disappear from search results entirely. Use robots.txt to save crawl budget on low-value URLs (like faceted search or admin areas); use noindex when the goal is specifically to keep a page out of search.

Robots.txt guide & reference

Syntax, best practices, platform tips, and FAQs — everything below the tool.

What Is a Robots.txt File, and Why Does It Matter for SEO?

A robots.txt file is a plain-text file placed at the root of a website that tells search engine crawlers and other bots which parts of the site they may or may not request. It uses simple directives like User-agent, Disallow, and Allow, and it's the first thing well-behaved crawlers check before crawling a site.

It matters for SEO because crawling isn't unlimited — search engines allocate a finite crawl budget to every site. A robots.txt file that steers crawlers away from low-value URLs (internal search results, filtered/faceted navigation, admin areas, staging paths) and points them straight to your XML sitemap helps them spend that budget on the pages that actually matter, which can speed up how quickly new or updated content gets discovered and re-crawled.

How Search Engines Use Robots.txt

Before crawling any page on a domain, a compliant crawler first fetches /robots.txt from that host. It parses the file into groups keyed by User-agent, finds the group that best matches its own name (falling back to User-agent: * if no specific match exists), and then checks every URL it wants to crawl against that group's Allow/Disallow rules before requesting it. Crucially, this all happens before the page is fetched — robots.txt is a crawl-time gate, not a content-level instruction.

Google, Bing, and other major engines cache the file for a period (Google for up to 24 hours) rather than re-fetching it on every single request, so changes aren't instantaneous — expect them to take effect within about a day.

Robots.txt Syntax Explained

The syntax is deliberately minimal. Each non-empty, non-comment line is a Directive: value pair. A file is organized into one or more groups, each starting with one or more User-agent lines followed by any number of Allow/Disallow rules (and an optional Crawl-delay). Sitemap lines are global and can appear anywhere. Lines starting with # are comments and ignored by every crawler.

DirectiveExampleWhat it matches
User-agentUser-agent: GooglebotStarts a new rule group for this crawler (or * for all crawlers)
DisallowDisallow: /cartBlocks any URL starting with /cart
AllowAllow: /wp-admin/admin-ajax.phpCarves out one exception inside a disallowed folder
SitemapSitemap: https://example.com/sitemap.xmlPoints crawlers to your sitemap — global, not group-specific
Crawl-delayCrawl-delay: 10Requests a 10-second gap between requests (Bing/Yandex only)

Wildcards and Pattern Matching Explained

Robots.txt supports two special characters, not full regular expressions. * matches any sequence of characters, including none. $ anchors a pattern to the end of the URL. So Disallow: /*.pdf$ blocks any URL ending in .pdf, while Disallow: /private* blocks anything starting with /private regardless of what follows. When more than one rule in a group matches the same URL, the longest matching rule wins — not the first one written, and not necessarily the most restrictive one.

Robots.txt Best Practices

  • Keep one User-agent: * group as your baseline, and add crawler-specific groups only when you genuinely need different rules for a specific bot.
  • Always include your Sitemap URL(s) — it costs nothing and helps discovery.
  • Never block CSS or JavaScript that search engines need to render your page correctly.
  • Use Allow to carve out exceptions rather than restructuring an entire Disallow rule.
  • Test every change against real URL paths before publishing — a single misplaced Disallow: / can deindex an entire site.

Robots.txt vs Meta Robots vs Noindex vs Canonical Tag

These four tools are frequently confused, but they each control a completely different stage of how a page is treated by search engines.

ToolControlsUse it whenWhat it doesn't do
Robots.txtWhether a URL is crawledSaving crawl budget on low-value or duplicate URL patternsDoesn't reliably keep an already-linked URL out of search results
Meta robots noindexWhether a crawled page is indexedYou want a specific page fully out of search resultsRequires the page to be crawlable — blocking it in robots.txt first prevents Google from ever seeing the noindex tag
Canonical tagWhich URL is the preferred version among duplicatesConsolidating ranking signals across near-duplicate or parameterized URLsDoesn't block crawling or indexing of the non-canonical URL — it's a hint, not a directive
X-Robots-Tag headerSame as meta robots, but at the HTTP header levelNon-HTML files (PDFs, images) that can't carry a meta tagSame crawlability requirement as meta robots noindex

Common Robots.txt Mistakes to Avoid

  • Blocking the whole site by accidentDisallow: / under User-agent: * removes the entire domain from search results.
  • Blocking CSS/JS — prevents Google from rendering the page as users see it.
  • Trying to hide sensitive paths — robots.txt is public, so listing /admin-backup/ as disallowed actually advertises that path to anyone who reads the file.
  • Forgetting the sitemap line — a small, free win that's easy to skip.
  • Rules placed before any User-agent line — these are ignored entirely by crawlers.
  • Assuming Disallow means noindex — the single most common technical SEO misconception around this file.

Advanced Robots.txt Rules — Multiple User-Agent Groups

A file can contain several groups, each targeting a different crawler with its own rules — useful when one bot needs stricter (or looser) treatment than the rest. When a crawler evaluates a file, it first looks for a group that names it specifically (by the longest matching user-agent token), and only falls back to User-agent: * if no specific group exists. Groups are otherwise independent — rules in a Googlebot-specific group have no effect on Bingbot, and vice versa.

Robots.txt for Popular Platforms

Most content management systems and store platforms have a few predictable low-value paths worth blocking. These reflect common, widely-used starting points — always verify against your specific theme, plugins, and site structure before publishing.

PlatformCommonly blockedNotes
WordPress/wp-admin/, /wp-includes/, internal search, feedsKeep /wp-admin/admin-ajax.php allowed — many plugins depend on it
Shopify / WooCommerce/cart, /checkout, /account, sort/filter parametersShopify generates its own robots.txt by default; customize via a robots.txt.liquid template rather than uploading a static file
BloggerSearch result pages, label archive duplicatesBlogger's default robots.txt is usually permissive; edit it under Settings → Crawlers and indexing
WixDynamic filter/search URLsEditable via Wix's SEO settings on paid plans
News / publishing sitesInternal search, admin, print-preview versionsAvoid blocking archives — they often retain long-term search value
SaaS / enterprise sitesApp/account areas, staging subdomains, internal docsCombine with authentication for anything truly sensitive — robots.txt alone isn't access control

Robots.txt Examples

Minimal blog

User-agent: * Disallow: /wp-admin/ Disallow: /search Sitemap: https://example.com/sitemap.xml

E-commerce site

User-agent: * Disallow: /cart Disallow: /checkout Disallow: /account Disallow: /*?*sort= Sitemap: https://example.com/sitemap.xml

Blocking named AI crawlers

User-agent: GPTBot User-agent: CCBot User-agent: ClaudeBot User-agent: Google-Extended Disallow: /

How to Test Your Robots.txt File

Never publish a robots.txt change to a live site without testing it first. Use the Tester tab above — paste a draft file, choose a crawler, and check individual or batch URL paths to see the exact rule that matches and why, using the same longest-match logic real crawlers use. For a second opinion once it's live, Google Search Console's robots.txt report shows the last version Google actually fetched and any parsing issues it found.

Checklist before publishing

  1. Confirm the file is reachable at exactly https://yourdomain.com/robots.txt.
  2. Test your homepage path (/) and confirm it's Allowed.
  3. Test a handful of real, important URLs from your site.
  4. Confirm your sitemap URL is listed and correct.
  5. Check the file size is well under the 500 KiB limit.

Troubleshooting Common Robots.txt Problems

My page still shows in search after blocking it. Expected — robots.txt blocks crawling, not indexing. Use a noindex tag instead, and don't block the page in robots.txt while you do, or Google will never see the tag. My rules aren't applying. Check that they sit inside a User-agent group and aren't placed before the first one. Google Search Console reports a fetch error. Confirm the file returns HTTP 200 with Content-Type: text/plain and isn't blocked by a firewall or bot-protection service.

Security Considerations — Robots.txt Is Public

Robots.txt is one of the most frequently fetched files on the web, and it's completely public — anyone, including attackers doing reconnaissance, can read it. Listing sensitive paths (admin panels, backup folders, internal tools) as Disallow rules doesn't hide them; it publishes a map of exactly where to look. For anything genuinely sensitive, use authentication, IP restriction, or removing the path from public DNS/routing entirely — robots.txt is a crawling courtesy convention, not an access-control mechanism.

Google vs Bing vs Other Search Engines — Directive Support

DirectiveGoogleBingYandex
Disallow / Allow✅ Full support, longest-match wins✅ Supported✅ Supported
Crawl-delay❌ Ignored entirely✅ Honored✅ Honored
Sitemap✅ Supported✅ Supported✅ Supported
Host❌ Never supported❌ Not supported⚠️ Historically supported, largely obsolete
Noindex (in robots.txt)❌ Removed Sept 2019❌ Not supported❌ Not supported

AI Crawlers and Robots.txt

As AI systems increasingly train on and cite web content, most major AI companies have introduced named, identifiable crawlers that — at least among reputable providers — check robots.txt the same way search engines do. This is a fast-moving area, and blocking one doesn't affect the others, so each has to be named explicitly if you want to opt out selectively.

CrawlerOperatorPurpose
GPTBotOpenAICrawls content for AI model training
ChatGPT-UserOpenAIFetches pages on behalf of a live ChatGPT user action, separate from training
ClaudeBot / anthropic-aiAnthropicCrawls content for AI model training
CCBotCommon CrawlOpen web archive used as training data by many AI labs
Google-ExtendedGoogleControls use of content for Gemini/AI training, separate from regular Googlebot search crawling
PerplexityBotPerplexityCrawls content to power AI-generated answers
Applebot-ExtendedAppleControls use of content for Apple Intelligence, separate from regular Applebot search indexing
BytespiderByteDanceCrawls content, reportedly for AI training purposes
AmazonbotAmazonCrawls for Alexa and other Amazon services, including AI features

Use the Block AI crawlers only preset in the Generator tab above to add all of these in one click. Remember: compliance is entirely voluntary, so this stops well-behaved crawlers, not bots deliberately built to ignore robots.txt.

Quick Answers

What is robots.txt in one sentence?

A plain-text file at a website's root that tells crawlers which URLs they may or may not request.

Where does robots.txt go?

At the exact root of the domain — https://example.com/robots.txt — never in a subfolder.

Does robots.txt stop indexing?

No — it only controls crawling. Use a meta robots noindex tag to control indexing.

Does Google support Crawl-delay?

No. Google ignores it completely; Bing and Yandex honor it.

What wins when two rules match the same URL?

The longest matching rule, regardless of whether it's Allow or Disallow.

Summary — Key Takeaways

  • Robots.txt controls crawling, not indexing — use noindex for the latter.
  • It must live at the exact root of the domain, and each subdomain needs its own file.
  • The longest matching rule always wins, regardless of order or Allow vs Disallow.
  • Google ignores Crawl-delay; Bing and Yandex honor it.
  • Never block CSS/JS, and never rely on it to hide sensitive content — it's a public file.
  • Always test real URLs before publishing, and keep your sitemap listed.

Frequently asked questions

What is a robots.txt file?

A robots.txt file is a plain-text file placed at the root of a website that tells search engine crawlers and other bots which parts of the site they may or may not request. It uses simple directives like User-agent, Disallow, and Allow, and it's the first thing well-behaved crawlers check before crawling a site.

Where should robots.txt be placed?

It must be placed at the root of your domain — https://example.com/robots.txt — not inside a subfolder. A robots.txt at /blog/robots.txt or /pages/robots.txt will be ignored.

Is robots.txt required for every website?

No. A website with no robots.txt is treated as fully crawlable by default. You only need one if you want to restrict crawling of specific paths, add a sitemap reference, or manage crawler-specific behavior.

How do I block Googlebot from my whole site?

Add "User-agent: Googlebot" followed by "Disallow: /" in its own group. Note this only stops crawling — pages that are already indexed or linked from elsewhere may still appear in search results without a snippet.

Can robots.txt improve my SEO?

Indirectly. robots.txt doesn't boost rankings by itself, but it helps SEO by directing crawl budget away from low-value pages toward the pages that matter, and by preventing crawlers from wasting resources on duplicate or thin content.

Can robots.txt hide pages from search results?

Not reliably. robots.txt only blocks crawling, not indexing. If a blocked URL is linked from elsewhere, Google can still list it in search results (usually without a description), because it never crawled the page to see any noindex instruction.

What happens if my site has no robots.txt file?

Nothing breaks — crawlers assume everything is allowed and crawl normally. Missing robots.txt is not an error and doesn't hurt SEO by itself; it's simply the default "open" state.

How do I add my sitemap to robots.txt?

Add a line like "Sitemap: https://example.com/sitemap.xml" anywhere in the file — it's global and applies regardless of which User-agent group it's placed under, and you can list multiple sitemap lines.

How do I test my robots.txt file?

Use a dedicated tester like the one on this page — paste your file, pick a crawler, and test individual URLs or a batch of paths to see exactly which rule matches and why. Google Search Console also has a robots.txt report for your verified property.

Can robots.txt block images specifically?

Yes — Disallow rules match any path, including image files and folders, e.g. "Disallow: /images/private/" or "Disallow: /*.jpg$" to block a file type.

How do wildcards work in robots.txt?

"*" matches any sequence of characters (including none), and "$" anchors the match to the end of the URL. For example, "Disallow: /*.pdf$" blocks any URL ending in ".pdf", while "Disallow: /private*" blocks anything starting with "/private".

What does Crawl-delay do?

Crawl-delay asks a crawler to wait a given number of seconds between requests. Bing and Yandex support it; Googlebot ignores it completely — use Google Search Console's crawl rate settings instead.

Does Google respect robots.txt?

Yes, Google is one of the crawlers that most strictly follows the published robots.txt specification (it even helped standardize it as RFC 9309), matching rules using longest-match-wins logic.

How does Bing use robots.txt differently from Google?

Bing generally follows the same core directives as Google but, unlike Google, it does honor Crawl-delay. It's worth testing rules specifically for Bingbot if precise control matters.

Can AI crawlers read and obey robots.txt?

Some do, some don't. Reputable AI companies like OpenAI (GPTBot) and Anthropic (ClaudeBot) publish crawler names and generally respect robots.txt, but compliance is entirely voluntary.

What are the most common robots.txt mistakes?

Accidentally disallowing the entire site with "Disallow: /" under "User-agent: *", blocking CSS/JS files search engines need to render the page, forgetting the sitemap URL, trying to hide sensitive pages (it reveals the path publicly instead), and putting rules before any User-agent line so they're ignored.

Is robots.txt case-sensitive?

Yes. Paths in robots.txt are case-sensitive, so "/Folder/" and "/folder/" are treated as two different paths. The directive names themselves are not case-sensitive.

Can I have multiple robots.txt files on one site?

No — a site should have exactly one robots.txt file at its root. Each subdomain, though, is treated as a completely separate host and needs its own robots.txt.

What's the difference between Disallow and noindex?

Disallow (in robots.txt) tells crawlers not to request a URL at all. Noindex (a meta tag or HTTP header) tells crawlers they may request the page but should not include it in search results.

Does robots.txt block a page from being indexed?

Not directly — robots.txt controls crawling, not indexing, which is a common and important distinction in technical SEO.

Can I use robots.txt to block specific bots only?

Yes — create a separate User-agent group naming just that bot (e.g. "User-agent: Bingbot") with its own rules. Bots look for a group naming them specifically before falling back to the "*" (all-crawlers) group.

What does Allow do inside a Disallowed folder?

It carves out an exception. For example, "Disallow: /wp-admin/" followed by "Allow: /wp-admin/admin-ajax.php" blocks the admin area but still lets that one specific file be crawled.

Is there a file size limit for robots.txt?

Yes — Google enforces a 500 KiB limit and ignores content beyond that. Well-organized files are almost always well under this limit.

Can robots.txt contain comments?

Yes — any line starting with "#" is a comment and ignored by crawlers, useful for documenting why a rule exists.

What happens if I accidentally block my entire site?

If it's already live, remove or fix the rule and resubmit the file — Google typically re-fetches robots.txt within about a day, though you can request a recrawl via Search Console.

Do I need a separate robots.txt for a subdomain?

Yes. Each subdomain is a distinct host as far as crawlers are concerned, so blog.example.com needs its own robots.txt separate from www.example.com's.

Can robots.txt block query-string parameters?

Yes, using wildcards — e.g. "Disallow: /*?sort=" blocks any URL containing a "sort=" query parameter, a common way to stop crawlers wasting budget on faceted navigation.

What's the difference between robots.txt and a canonical tag?

A canonical tag tells search engines which URL is the "master" version among duplicates, while robots.txt controls whether a URL gets crawled at all. A page can be canonicalized and still fully crawlable.

How often does Google re-check my robots.txt?

Google typically re-checks robots.txt roughly once a day, and caches the last successfully fetched version for up to 24 hours if a later fetch fails.

Can I use robots.txt for staging or development sites?

Yes, but robots.txt alone won't reliably keep a staging site out of search results — combine "Disallow: /" with password protection or a noindex header for reliable exclusion.

Does robots.txt affect crawl budget?

Yes, meaningfully on large sites. Disallowing low-value URL patterns frees up crawl budget for pages that actually matter.

What is the "User-agent: *" group for?

It's the default group that applies to any crawler not specifically named elsewhere in the file — the fallback most sites rely on for their general rules.

Can I block CSS and JavaScript files?

You technically can, but it's strongly discouraged — blocking CSS or JS can prevent Google from rendering your page the way users see it, which can hurt ranking. Google explicitly recommends against this.

How do I block AI training crawlers like GPTBot?

Add a User-agent group naming the crawler (e.g. "User-agent: GPTBot") with "Disallow: /" underneath. This tool has a one-click "Block AI crawlers only" preset covering the major named AI bots.

What's the correct MIME type for robots.txt?

robots.txt should be served as plain text with the MIME type "text/plain" — serving it as HTML or with an incorrect content type can cause some crawlers to misinterpret or ignore it.

Can robots.txt redirect crawlers to another URL?

No — robots.txt can only allow or disallow crawling of specific paths. Redirection is a separate, server-level concern.

Is this tool free to use?

Yes, this generator and tester is completely free, with no signup, no usage limits, and no watermark on the output.

Does this tool upload my robots.txt anywhere?

No — everything runs locally in your browser. Your robots.txt content, rules, and any URLs you test are never sent to a server.

Can I import an existing robots.txt into the visual builder?

Yes — paste or type a robots.txt into the Tester tab and click "Import this into visual builder" to load it into the Generator tab for editing.

Can I export my configuration to reuse later?

Yes — use "Export JSON" to save your configuration as a file you can re-import later, "Save to browser" to store it locally, or "Copy shareable link" to generate a URL that reconstructs your configuration when opened.

More questions people also ask

Does robots.txt block Bing the same way it blocks Google?

Mostly, yes — Bing follows the same core spec, though it also honors Crawl-delay unlike Google.

Can robots.txt stop a page from ranking?

Not directly; a blocked page can't be crawled to gain signals, and if an already-ranking page gets blocked it will eventually drop out.

Does robots.txt work for mobile search results too?

Yes — the same robots.txt governs both, since Google uses a single crawler for mobile and desktop.

Can I block just one page instead of a whole folder?

Yes — list the exact path, e.g. "Disallow: /page-name.html".

Does robots.txt affect PageRank?

No, it has no direct effect on PageRank calculations — it only controls crawl access.

Can robots.txt block a whole file type, like PDFs?

Yes, using a wildcard pattern such as "Disallow: /*.pdf$".

What happens if two rules conflict?

The longest matching rule wins, regardless of whether it's Allow or Disallow.

Does the order of rules in a group matter?

No — matching is based on rule specificity (length), not the order rules appear.

Can I block a whole subdomain from one robots.txt?

No — subdomains need their own robots.txt file at their own root.

Is robots.txt part of an official web standard?

Yes — it was formally standardized as RFC 9309 in 2022, based on the long-standing convention.

Can robots.txt block DuckDuckBot?

Yes, target it directly with "User-agent: DuckDuckBot".

Does Yandex support Crawl-delay?

Yes, Yandex is one of the few major crawlers that still honors it.

Can I use robots.txt to manage duplicate content?

It can help by blocking duplicate parameter URLs, but a canonical tag is the more precise tool for that job.

Should I block /wp-json/ on WordPress?

Generally no — many plugins and the block editor rely on the REST API, and blocking it can break functionality.

Can robots.txt block a whole IP range?

No, robots.txt only works with URL paths on the domain that serves it, not IP-based rules.

Does robots.txt support regex?

No — only the limited "*" and "$" wildcard syntax is supported, not full regular expressions.

Can I use environment variables in robots.txt?

No, it's a static text file — any dynamic behavior must be generated server-side before it's served.

Does robots.txt need to be lowercase?

Paths are case-sensitive, but there's no requirement for the whole file to be lowercase.

Can search engines ignore my robots.txt entirely?

Yes — compliance is voluntary, and disreputable or malicious bots frequently ignore it.

Should I list all my sitemaps in robots.txt?

Yes — listing your sitemap(s) helps crawlers discover URLs faster, especially before Search Console submission.

Can I test robots.txt before my site goes live?

Yes — paste a draft file into a tester and check URLs without needing it publicly hosted yet.

Does robots.txt affect Core Web Vitals?

No, it only controls crawl access and has no relationship to page performance metrics.

Can I block only mobile crawlers?

Not precisely — Google now uses a single crawler for both mobile and desktop indexing.

What's the difference between Googlebot and Googlebot-Image?

Googlebot-Image specifically fetches images for Google Images, so you can restrict image indexing separately from pages.

Can robots.txt block a whole language subfolder?

Yes, e.g. "Disallow: /fr/" blocks an entire language section if needed.

Is it bad practice to have an empty robots.txt file?

No — an empty or missing file is equivalent to allowing everything, a perfectly valid default.

Can robots.txt list a preferred domain?

The old "Host" directive attempted this for Yandex, but it's largely obsolete; use a canonical tag instead.

Does having a robots.txt file prove I've done SEO right?

No — it's one small technical piece, not proof of broader optimization.

Can I disallow everything except my homepage?

Yes, e.g. "Disallow: /" followed by "Allow: /$" to allow only the exact root URL.

Does robots.txt work the same for HTTP and HTTPS versions?

No — HTTP/HTTPS and www/non-www are separate hosts, each needing its own file if both are live.

Can AI Overviews cite content blocked in robots.txt?

No — if a page can't be crawled, it can't be read or cited by systems that rely on crawling.

Should I block staging subdomains from AI crawlers too?

Yes — the same "Disallow: /" logic used for search bots applies to named AI crawler groups.

Can robots.txt help crawl budget on a huge e-commerce site?

Yes, significantly — blocking filtered/sorted parameter URLs is one of the highest-impact uses on large catalogs.

Is "Disallow:" with nothing after it the same as allowing everything?

Yes, an empty value means no restriction for that group.

Can I have comments inside a User-agent group?

Yes, "#" comments can appear anywhere without affecting the directives around them.

Does robots.txt apply to images on a CDN subdomain?

No — a different subdomain or domain needs its own robots.txt.

Can I block Applebot?

Yes; note "Applebot-Extended" specifically covers Apple Intelligence/AI training and can be blocked separately.

Should news sites block their archive pages?

Generally no — archives often retain long-term search value; block only genuinely low-value pages.

Can robots.txt be used to prevent scraping?

Not effectively — it's voluntary, so it won't stop bots that deliberately ignore it.

Does adding Crawl-delay slow down Bing significantly?

It can — Bing will wait the specified seconds between requests, reducing throughput if set too high.

Can I nest folders in a Disallow rule?

Yes, e.g. "Disallow: /account/orders/" blocks that folder and everything beneath it.

What if my robots.txt has a syntax error?

Most crawlers skip the unrecognized line and continue, but it's best to fix errors since behavior can vary.

Can Shopify's default robots.txt be customized?

Yes, via a robots.txt.liquid template — Shopify doesn't allow uploading a fully custom static file.

Does Wix let me edit robots.txt?

Yes, Wix provides a robots.txt editor in its SEO settings on paid plans.

Can robots.txt block query parameters only for certain paths?

Yes, combine a path prefix with a wildcard, e.g. "Disallow: /shop/*?sort=".

Is robots.txt read before or after a redirect?

The destination host's robots.txt applies to further crawling once a redirect lands there.

Can I block a bot by IP address in robots.txt?

No — that requires server or firewall-level configuration instead.

Does robots.txt need a trailing newline?

It's good practice but not strictly required; this tool's generator always outputs one.

Can I use robots.txt to block a single query string value?

Yes, e.g. "Disallow: /*?id=123" for that specific value, though blocking the whole parameter is usually more maintainable.

Should small personal blogs bother with robots.txt at all?

It's optional but still useful — mainly to add a sitemap reference and block low-value paths like internal search.

Ready to publish your robots.txt?

Build it visually, test URLs against real matching logic, then download — all in your browser.

🛠️ Build my robots.txt now