AM Jarvis

Robots.txt Generator with AI Crawler Blocking

Build a robots.txt from platform presets, block AI crawlers, add your sitemap and catch mistakes before you publish.

Robots.txt generator

Preset
Rules by user agent
Block AI crawlers Each one adds its own group with Disallow: /
robots.txt

  

    Publish the file at the root of your domain, for example https://example.com/robots.txt, then check it in the robots.txt report in Google Search Console.

    In short

    A robots.txt file tells crawlers which URLs on your site they may request. To make one, pick a preset above (WordPress and WooCommerce, Shopify, static, allow all or block all), add rules, tick any AI crawlers to block and add your sitemap. The tool flags risky rules, then lets you copy or download the file.

    On this page
    1. How to use the robots.txt generator
    2. What robots.txt is and when to use it
    3. Platform presets
    4. Blocking AI crawlers
    5. What robots.txt does not do
    6. How crawlers read the rules
    7. Mistakes the checker catches
    8. Who needs this
    9. Troubleshooting
    10. Related tasks

    A robots.txt file sits at the root of your domain and tells crawlers which URLs they may request. One wrong line can stop search engines from crawling your whole store, so this generator builds the file from a tested preset and checks it for the mistakes that cause real damage.

    How to use the robots.txt generator

    1. Enter your site URL. It fills in the sitemap address for the preset you choose.
    2. Pick a preset: WordPress and WooCommerce, Shopify, static site, allow all, or block all (for a staging site).
    3. Edit the rule groups. Each group has a user agent (use * for all crawlers), optional crawl-delay and any number of Allow or Disallow rules. Add groups for specific crawlers such as Bingbot.
    4. Tick AI crawlers to block: GPTBot, ClaudeBot, CCBot, Google-Extended, PerplexityBot, Bytespider, Applebot-Extended and meta-externalagent. Select all or clear them in one click.
    5. Add sitemap URLs, one per line.
    6. Read the checks. Red items will cause damage, yellow items need a look, blue items are notes.
    7. Copy or download. For Shopify, the tool writes a robots.txt.liquid template instead of a plain file.

    What robots.txt is and when to use it

    Use robots.txt to keep crawlers away from URLs that waste their time or should never be crawled: cart, checkout and account pages, internal search results, endless filter and sort combinations, and admin areas. Do not use it to hide private content or to remove pages from Google. A healthy file for most stores is short: a few Disallow lines for low-value paths and a Sitemap line.

    What a WordPress and WooCommerce file from the preset looks like:

    User-agent: *
    Disallow: /wp-admin/
    Allow: /wp-admin/admin-ajax.php
    Disallow: /wp-login.php
    Disallow: /cart/
    Disallow: /checkout/
    Disallow: /my-account/
    Disallow: /*?add-to-cart=
    Disallow: /*?orderby=
    Disallow: /?s=
    Disallow: /search/

    Sitemap: https://example.com/wp-sitemap.xml

    To find any site's robots.txt, add /robots.txt to the domain, for example example.com/robots.txt.

    Platform presets

    PlatformHow robots.txt works thereHow to publish
    WordPress and WooCommerceWordPress serves a virtual robots.txt unless a real file exists in the site rootUpload the file to the root folder, or paste it into your SEO plugin's robots.txt editor
    ShopifyShopify generates robots.txt automatically from the robots.txt.liquid theme templateAdd the generated robots.txt.liquid as a new robots template in your theme code
    Static sitesThe server returns whatever file sits at /robots.txtPut the file in the folder your host publishes as the site root

    Editing robots.txt on Shopify

    You cannot upload a robots.txt file to Shopify. Its default file already blocks paths such as /admin, /cart, /checkout and /search, and includes your sitemap. The Shopify preset writes a robots.txt.liquid template that keeps Shopify's default rules, adds your extra rules to the * group, and appends AI crawler groups and extra sitemaps. To install it, following Shopify's instructions:

    1. In Shopify admin, go to Online Store > Themes, open the menu on your current theme and click Edit code.
    2. Click Add a new template, choose robots, then Create template.
    3. Replace the template content with the generated code and save. Open yourstore.com/robots.txt to confirm the result.

    Shopify calls this an unsupported customization that its support team cannot help with, and warns that incorrect edits can cost you traffic, so keep the default Liquid loop that the tool writes.

    Blocking AI crawlers

    Each ticked crawler gets its own group with Disallow: /. Know what each one does before you block it:

    User agentOperatorWhat it is used for
    GPTBotOpenAICollecting content that may be used to train its models
    ClaudeBotAnthropicCollecting content for model training
    CCBotCommon CrawlA public web archive that many AI datasets are built from
    Google-ExtendedGoogleA control token for Gemini training and grounding, not a separate crawler
    PerplexityBotPerplexityIndexing pages for Perplexity search answers
    BytespiderByteDanceByteDance's web crawler
    Applebot-ExtendedAppleA control token for training Apple's generative models
    meta-externalagentMetaCrawling for AI training and related uses

    OpenAI and Anthropic also run separate agents for search features and for pages a user asks the assistant to open (OpenAI lists OAI-SearchBot and ChatGPT-User). Blocking the training crawlers above does not block those. If you want to, add a group for each name with the Add user-agent group button, and check each company's crawler documentation for the current names.

    There is a trade-off. Blocking crawlers that power AI search, such as PerplexityBot or OAI-SearchBot, can reduce how often your pages are cited in those answers, which for a store can mean fewer referrals. Also, robots.txt is voluntary: well-behaved crawlers follow it, but it cannot force a bot to stop.

    Google-Extended is not Googlebot

    Googlebot crawls pages for Google Search. Google-Extended is a product token that controls whether content Google has crawled can be used to train Gemini models and for grounding. Google states it does not affect inclusion in Google Search and is not a ranking signal. Blocking Google-Extended is safe for SEO. Blocking Googlebot removes you from Google Search crawling.

    What robots.txt does not do

    • It controls crawling, not indexing. A blocked URL can still appear in Google, without a description, if other pages link to it. Use a noindex tag or password protection instead, and do not block the page, or Google never sees the noindex.
    • Google ignores crawl-delay. Some other crawlers, such as Bing, honor it.
    • It is not security. The file is public, so listing a secret path only advertises it.

    How crawlers read the rules

    • Location: the file only works at the root of a host. A blog on a subdomain needs its own robots.txt.
    • Matching: Google applies the most specific (longest) matching rule, so Allow: /wp-admin/admin-ajax.php wins over Disallow: /wp-admin/.
    • Groups: a crawler follows only the most specific group that names it. If you add a Googlebot group, Googlebot ignores the * group, so repeat any rules it should follow.
    • Case: paths are case-sensitive. Disallow: /Search does not block /search.
    • Wildcards: * matches any characters and $ marks the end of a URL, as in Disallow: /*?add-to-cart=.
    • Size: Google reads the first 500 KiB of the file and ignores anything after that.

    Mistakes the checker catches

    • Disallow: / under User-agent: *. This blocks every compliant crawler from your whole site. It often ships by accident when a staging file goes live.
    • Disallow: / for Googlebot. Removes your site from Google Search crawling.
    • Blocking CSS and JavaScript, such as /wp-content/themes/ or /assets/. Google renders pages like a browser and needs them.
    • Paths that do not start with / or *. Crawlers may ignore them.
    • Trying to noindex in robots.txt. Google does not support it.
    • A missing or relative sitemap URL. The Sitemap URL must be absolute, including https://.
    • Duplicate user-agent groups and case-sensitive paths, flagged as notes.

    Who needs this

    • WooCommerce store owners keeping crawlers out of cart, checkout, account and sort URLs.
    • Shopify merchants who want to block AI training crawlers without breaking Shopify's defaults.
    • Bloggers and niche site builders deciding which AI crawlers to allow.
    • Developers who need a block-all file for staging and a clean one for launch.

    Troubleshooting

    • Your changes do not show at /robots.txt. On WordPress, a physical file overrides the virtual one and SEO plugins may manage it; clear any cache. On Shopify, confirm the template is named robots.txt.liquid in the templates folder.
    • Search Console says a page is "Indexed, though blocked by robots.txt". Remove the block and add a noindex tag if you want the page out of Google.
    • Traffic dropped after a change. Look for Disallow: / or a blocked assets folder, fix it, then use the robots.txt report in Search Console to request a recrawl.

    Tip: After publishing, open yoursite.com/robots.txt in a browser to confirm the live file, then check the robots.txt report in Google Search Console.

    Robots.txt is one part of technical SEO. Run through the Shopify SEO audit for the rest, and use the collections SEO guide before you block any filtered collection URLs. Check your live pages with the website SEO checker. If you build niche sites, the AM Jarvis AI Site Builder creates complete sites including an llms.txt file for AI tools.

    Frequently asked questions

    What is robots.txt?

    Robots.txt is a plain text file at the root of a website, such as example.com/robots.txt, that tells search engine and other crawlers which URLs they may request. It uses User-agent lines to name crawlers and Allow and Disallow lines for paths, plus optional Sitemap lines.

    Does robots.txt stop a page from being indexed?

    No. Robots.txt controls crawling, not indexing. Google says a blocked URL can still appear in search results without a description if other pages link to it. To keep a page out of Google, use a noindex tag or password protection, and leave the page crawlable so Google can see the noindex.

    Is there a robots.txt for AI?

    AI companies use the same robots.txt file. Block their crawlers by name, such as GPTBot, ClaudeBot, CCBot, PerplexityBot and Google-Extended, each with Disallow: /. Some sites also publish an llms.txt file to guide AI tools, but that is a separate, voluntary convention, not a replacement for robots.txt.

    Does blocking Google-Extended hurt my Google rankings?

    No. Google-Extended only controls whether content Google crawls can be used for Gemini model training and grounding. Google states it does not affect inclusion in Google Search and is not a ranking signal. Googlebot, the Search crawler, is a separate user agent that you should not block.

    How do I edit robots.txt on Shopify?

    Shopify generates robots.txt automatically. To customize it, go to Online Store > Themes > Edit code, add a new template of type robots, and paste the robots.txt.liquid this tool generates. It keeps Shopify's default rules and adds yours. Shopify Support does not help with these edits.

    How do I block ChatGPT and Claude from crawling my site?

    Tick GPTBot and ClaudeBot above, which adds a group for each with Disallow: /. These are the crawlers OpenAI and Anthropic use to collect training data. Both companies run other agents for search and user-requested fetches, so add those names too if you want to block them.

    Does Google support crawl-delay in robots.txt?

    No. Google ignores the crawl-delay field and only supports user-agent, allow, disallow and sitemap. Some other crawlers, such as Bing, still honor crawl-delay, so it does no harm to include it for them, but it will not slow Googlebot down.

    Does robots.txt still work?

    Yes. Google, Bing and the major AI companies say their crawlers follow it, and it is a formal internet standard (RFC 9309). It is still voluntary, though, so badly behaved bots can ignore it. For content that must stay private, use passwords or server rules.