Robots.txt Audit and Fixer
One wrong line in robots.txt can hide your whole site from Google, and lines Google doesn't support do nothing at all. This prompt checks your robots.txt line by line, explains each rule in plain English, finds the risky and useless ones, and writes a clean, safe version.
Example input
This is exactly what we gave the model. You replace it with your own details.
- Website: https://www.example.com - Platform: WooCommerce on WordPress - Paste my full robots.txt: User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/ Disallow: /cart/ Disallow: /checkout/ Disallow: /*? Crawl-delay: 10 Noindex: /tag/ User-agent: Googlebot Allow: / User-agent: GPTBot Disallow: / Sitemap: http://example.com/sitemap.xml - Important sections that MUST be crawled: /product/, /product-category/, /blog/ - Things I want to stop crawlers wasting time on: Internal search (?s=), add-to-cart links (?add-to-cart=), filter URLs (?filter_color=, ?min_price=) - AI bots I want to allow or block (if decided): Block GPTBot and CCBot. Allow OAI-SearchBot and PerplexityBot. - Subdomains with their own robots.txt: shop.example.com (the old store, now redirects to www)
Real output
Pasted straight from the model. We did not fix a word.
robots.txt audit: www.example.com (WooCommerce on WordPress)
Short version: your file has three serious problems, and they work against each other.
- Google ignores almost all of your rules. Lines 11–12 (
User-agent: Googlebot+Allow: /) give Googlebot its own group, so it skips lines 1–9 completely. Right now Googlebot can crawl your cart, checkout, internal search, add-to-cart links and filter URLs. Those are the exact things you want to stop. - Every other bot is blocked from your CSS, JavaScript and images. Bing, Google's shopping crawler and the AI search bots you want to allow (OAI-SearchBot, PerplexityBot) all follow the
*group. That group blocks/wp-content/,/wp-includes/and every URL with a?in it. - Two lines do nothing in Google (
Crawl-delayandNoindex), and the sitemap URL points to the wrong host and protocol.
Trap to avoid: if you only delete the Googlebot group, Googlebot starts obeying lines 3, 4 and 7, and your product pages would look broken to Google. Fix everything at once. The new file below does that.
Site-wide block check:
Disallow: /appears once in your file, and only underUser-agent: GPTBot. It is not a block for all bots, and it matches your wish to block GPTBot, so it stays. The new file has noDisallow: /for all bots. (Please still check shop.example.com. See question 3.)
All field names are spelled correctly, so typos are not a problem here.
Questions (I carried on using my guesses)
- What is your real sitemap URL? Guess: you use Yoast SEO or Rank Math, so it is
https://www.example.com/sitemap_index.xml. If you use WordPress's built-in sitemap, it is/wp-sitemap.xmlinstead. - Do your WooCommerce pages use the default slugs
/cart/,/checkout/and/my-account/? Guess: yes. - What does
https://shop.example.com/robots.txtshow today? Guess: it is a leftover file from the old store, or it redirects to www. Either way it must not sayDisallow: /. Google has to crawl the old URLs to see the redirects and pass their value to www. - Why was
Crawl-delay: 10added? Guess: it was copied from a template, not added because Bing was overloading your server. So I removed it. - Have you decided about other AI bots (for example ClaudeBot, Google-Extended, Applebot-Extended, Bytespider)? Guess: not yet, so I left them alone. They follow the
*rules.
1. Line-by-line review
| Line | What it means | Google obeys? | Risk | Keep/Change/Remove |
|---|---|---|---|---|
1: User-agent: * | Starts the rules for every crawler that has no group of its own. | Yes, but Googlebot never uses this group, because line 11 gives it its own. | OK | Keep |
2: Disallow: /wp-admin/ | Don't crawl the WordPress dashboard. | Supported, but Googlebot skips it (line 11). Bing and others obey it. | OK, but it's missing the admin-ajax.php exception | Change (add Allow: /wp-admin/admin-ajax.php) |
3: Disallow: /wp-includes/ | Don't crawl WordPress core files. These include core JavaScript (like jQuery) that WooCommerce pages load. | Googlebot skips it (for now). Others obey it. | Critical: blocks resources pages need to render | Remove |
4: Disallow: /wp-content/ | Don't crawl themes, plugins or uploads. That covers your theme CSS, WooCommerce scripts and every product photo in /wp-content/uploads/. | Googlebot skips it (for now). Others obey it. | Critical: blocks CSS, JS and all images | Remove |
5: Disallow: /cart/ | Don't crawl the cart page. | Googlebot skips it (line 11). Others obey it. | OK, but useless for Google today | Keep |
6: Disallow: /checkout/ | Don't crawl the checkout page. | Googlebot skips it (line 11). Others obey it. | OK, but useless for Google today | Keep |
7: Disallow: /*? | Don't crawl any URL that contains a ?. It catches search and filter URLs, but also every CSS/JS file WordPress loads with ?ver= and any normal page opened with a parameter. | Googlebot skips it. Others obey it. | Critical: far too broad | Change to targeted parameter rules |
8: Crawl-delay: 10 | Wait 10 seconds between requests. | No. Google ignores this field. Bing obeys it: about one URL per 10 seconds, roughly 8,640 URLs a day at most. | Wasted in Google, slows Bing down | Remove |
9: Noindex: /tag/ | Tries to keep tag pages out of search results. (Guess: that is your goal.) | No. Not a valid field. Google stopped supporting it in September 2019. | Wasted: your tag pages can still be indexed | Remove and use noindex in your SEO plugin |
| 10, 13, 16: blank lines | Separate the groups. | n/a | None | Keep |
11: User-agent: Googlebot | Starts a group just for Googlebot. Google follows only the most specific group that matches, so Googlebot now ignores lines 1–9. | Yes | Critical (logic): switches off all your crawl rules for Google | Remove |
12: Allow: / | Googlebot may crawl everything: cart, checkout, wp-admin, search, add-to-cart and filters. Everything is allowed by default anyway, so this line only does harm. | Yes | Wasted (duplicate of the default) and harmful because of line 11 | Remove |
14: User-agent: GPTBot | Starts a group for OpenAI's model-training crawler. | Not a Google rule. OpenAI says GPTBot follows robots.txt. | OK | Keep |
15: Disallow: / | Blocks GPTBot from the whole site. This applies only to GPTBot, not to all bots. | n/a (OpenAI) | OK, it's your choice | Keep |
17: Sitemap: http://example.com/sitemap.xml | Tells crawlers where your sitemap is. | Yes, the field is supported. But this URL is http and non-www, while your site is https://www, so it probably redirects. It may not be your real sitemap file (guess). | Low | Change to the full https://www. URL |
2. Problems by risk level
Critical (blocks important pages or resources)
- Lines 11–12 switch off every rule for Google. Googlebot matches
User-agent: Googlebot, so it never reads the*group. It is free to crawl/cart/,/checkout/,/wp-admin/,?s=,?add-to-cart=and every filter combination. Filter URLs multiply fast (colors × sizes × price ranges on every/product-category/page), so this can take a big share of Google's crawling of your store. Strictly speaking this doesn't block anything, but I put it under critical because it cancels every crawl rule you wrote. - Lines 3 and 4 hide your CSS, JavaScript and product images from every bot that uses the
*group. That includes Bingbot, OAI-SearchBot, PerplexityBot, and, if you use Google Merchant Center, Google's shopping crawler Storebot-Google, which doesn't use the Googlebot group. These bots see unstyled pages with no product photos. - Line 7 (
/*?) blocks more than you think. WordPress adds version strings to CSS and JS files (for examplestyle.css?ver=6.8), so this line would keep blocking them even after you remove line 4.
Wasted (unsupported or duplicate rules)
- Line 8
Crawl-delay: Google ignores it. In Bing it slows crawling of your products for no good reason (guess, see question 4). - Line 9
Noindex: Google ignores it. Don't switch toDisallow: /tag/either. That would stop Google from seeing a noindex tag, and the pages could stay in search anyway. - Line 12
Allow: /: a duplicate of the default.
Missing (useful rules you don't have)
- Targeted blocks that work for all bots, Google included:
- internal search (
?s=,/search/) - add-to-cart links (
add-to-cart=) - attribute filters (
filter_, plus WooCommerce's matchingquery_type_) - price filters (
min_price,max_price) - rating filter (
rating_filter), which I added as part of your filter goal
- internal search (
Disallow: /my-account/(guess: default slug).Allow: /wp-admin/admin-ajax.php. WordPress's own default robots.txt includes it, because some themes and plugins load public page content through it.- A
CCBotblock. You want it blocked, but it is not in the file. - The correct sitemap URL on
https://www.example.com. - A real noindex for tag pages, set in your SEO plugin (not in robots.txt).
3. Important URL test
All URLs are on https://www.example.com. Product, category and post names are examples (guesses), so swap in your real ones.
Your current file
| URL | Result | Matching rule |
|---|---|---|
/product/blue-shirt/ | Googlebot: Allowed · Others: Allowed | Googlebot: Allow: / · Others: no rule matches (allowed by default) |
/product-category/shirts/ | Googlebot: Allowed · Others: Allowed | Googlebot: Allow: / · Others: no rule matches |
/blog/sample-post/ | Googlebot: Allowed · Others: Allowed | Googlebot: Allow: / · Others: no rule matches |
/wp-content/uploads/2026/05/blue-shirt.jpg | Googlebot: Allowed · Others: Blocked | Others: Disallow: /wp-content/ |
/wp-content/themes/your-theme/style.css?ver=6.8 | Googlebot: Allowed · Others: Blocked | Others: Disallow: /wp-content/ (also /*?) |
/wp-includes/js/jquery/jquery.min.js?ver=3.7.1 | Googlebot: Allowed · Others: Blocked | Others: Disallow: /wp-includes/ |
/?s=shirt | Googlebot: Allowed (not wanted) · Others: Blocked | Googlebot: Allow: / · Others: Disallow: /*? |
/product/blue-shirt/?add-to-cart=123 | Googlebot: Allowed (not wanted) · Others: Blocked | Googlebot: Allow: / · Others: Disallow: /*? |
/product-category/shirts/?filter_color=blue | Googlebot: Allowed (not wanted) · Others: Blocked | Googlebot: Allow: / · Others: Disallow: /*? |
/product-category/shirts/?min_price=10&max_price=50 | Googlebot: Allowed (not wanted) · Others: Blocked | Googlebot: Allow: / · Others: Disallow: /*? |
/cart/ and /checkout/ | Googlebot: Allowed (not wanted) · Others: Blocked | Googlebot: Allow: / · Others: Disallow: /cart/, Disallow: /checkout/ |
/tag/summer/ | Allowed for all bots, and not noindexed | No rule matches. Noindex: is ignored. |
| Any URL, crawled by GPTBot | Blocked | Disallow: / (GPTBot group) |
The new file (below)
Googlebot and Bingbot now both use the User-agent: * group, so one result applies to both unless a bot is named.
| URL | Result | Matching rule |
|---|---|---|
/product/blue-shirt/ | Allowed | No rule matches (allowed by default) |
/product-category/shirts/ | Allowed | No rule matches |
/product-category/shirts/page/2/ | Allowed | No rule matches |
/blog/sample-post/ | Allowed | No rule matches |
/wp-content/uploads/2026/05/blue-shirt.jpg | Allowed | No rule matches |
/wp-content/themes/your-theme/style.css?ver=6.8 | Allowed | No rule matches (?ver= is not blocked) |
/wp-includes/js/jquery/jquery.min.js?ver=3.7.1 | Allowed | No rule matches |
/wp-admin/admin-ajax.php | Allowed | Allow: /wp-admin/admin-ajax.php (longer than Disallow: /wp-admin/, so it wins) |
/wp-admin/options.php | Blocked | Disallow: /wp-admin/ |
/?s=shirt | Blocked | Disallow: /*?s= |
/?post_type=product&s=shirt | Blocked | Disallow: /*&s= |
/search/shirt/ | Blocked | Disallow: /search/ |
/product/blue-shirt/?add-to-cart=123 | Blocked | Disallow: /*add-to-cart= |
/product-category/shirts/?filter_color=blue | Blocked | Disallow: /*?filter_ |
/product-category/shirts/?filter_color=blue&query_type_color=or | Blocked | Disallow: /*?filter_ (also /*&query_type_) |
/product-category/shirts/?min_price=10&max_price=50 | Blocked | Disallow: /*?min_price= (also /*&max_price=) |
/product-category/shirts/?orderby=price | Blocked (optional rule) | Disallow: /*?orderby= |
/cart/, /checkout/, /my-account/ | Blocked | Their own Disallow lines |
/tag/summer/ | Allowed, on purpose | No rule matches. Noindex is set in your SEO plugin. |
/product/blue-shirt/, crawled by GPTBot or CCBot | Blocked | Disallow: / in their own groups |
/product/blue-shirt/, crawled by OAI-SearchBot or PerplexityBot | Allowed | * group, no rule matches |
/?s=shirt, crawled by OAI-SearchBot or PerplexityBot | Blocked | * group, Disallow: /*?s= |
4. New robots.txt
# robots.txt for https://www.example.com
# Platform: WooCommerce on WordPress
# Updated: [date]
#
# This file controls CRAWLING, not indexing.
# To keep a page out of search results, leave it crawlable and give it
# a noindex tag (set in your SEO plugin).
# No blank lines inside a group on purpose: some parsers end a group
# at a blank line. Comment lines are fine.
# ============================================================
# SECTION 1 - ALL CRAWLERS
# (Googlebot, Bingbot and every bot not named in Section 2)
# There is deliberately NO separate Googlebot group: a named group
# would make Googlebot ignore every rule here.
# ============================================================
User-agent: *
# --- WordPress admin (admin-ajax.php stays open: themes/plugins use it on public pages)
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-admin/
# --- WooCommerce private pages (default slugs - change if yours differ)
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
# --- Internal search results (?s= first or later in the URL, plus /search/term/)
Disallow: /*?s=
Disallow: /*&s=
Disallow: /search/
# --- Add-to-cart action links (?add-to-cart= and &add-to-cart=)
Disallow: /*add-to-cart=
# --- Attribute filters (?filter_color=, ?filter_size= ...) and WooCommerce's query_type_ partner
Disallow: /*?filter_
Disallow: /*&filter_
Disallow: /*?query_type_
Disallow: /*&query_type_
# --- Price and rating filters
Disallow: /*?min_price=
Disallow: /*&min_price=
Disallow: /*?max_price=
Disallow: /*&max_price=
Disallow: /*?rating_filter=
Disallow: /*&rating_filter=
# --- OPTIONAL: sort-order copies of category pages (?orderby=price etc.)
# --- Delete these two lines if you want sorted versions crawled.
Disallow: /*?orderby=
Disallow: /*&orderby=
# --- Deliberately NOT blocked:
# /wp-content/ and /wp-includes/ -> CSS, JavaScript and images that pages need to render
# /tag/ -> must stay crawlable so Google can see its noindex tag
# /product/, /product-category/, /blog/ -> allowed by default, no Allow lines needed
# ============================================================
# SECTION 2 - AI CRAWLERS (your decisions)
# ============================================================
# BLOCKED - GPTBot, OpenAI's model-training crawler
User-agent: GPTBot
Disallow: /
# BLOCKED - CCBot, Common Crawl (its open dataset is widely used to train AI models)
User-agent: CCBot
Disallow: /
# ALLOWED - OAI-SearchBot (ChatGPT search) and PerplexityBot (Perplexity search)
# They have NO group of their own on purpose, so they follow Section 1:
# full access except admin, cart, account, search and filter URLs.
# Do not add "User-agent: OAI-SearchBot" + "Allow: /" - a named group would
# make them ignore Section 1 (the same mistake as the old Googlebot group).
# ============================================================
# SECTION 3 - SITEMAP (full https://www URL - guess, confirm yours)
# ============================================================
Sitemap: https://www.example.com/sitemap_index.xml
Why it's built this way:
- No
Allowlines for your important sections. They are allowed by default. Adding one can even break things, because the longest matching rule wins. For example,Allow: /product-category/(18 characters) is longer thanDisallow: /*?filter_(10 characters), so it would make every filter URL on your category pages crawlable again. - Each parameter rule has a
?version and an&version, because a parameter can come first or later in the URL. - The rules fail safe. A bot that doesn't understand
*wildcards just treats those lines as paths that don't exist. It won't block your real pages by mistake. - AI choices are consistent. Blocking GPTBot doesn't block OAI-SearchBot. OpenAI controls them separately, so your store can still appear in ChatGPT search. User-triggered fetchers such as ChatGPT-User and Perplexity-User are separate again and may not follow robots.txt the same way. I didn't add rules for them because you haven't decided.
- robots.txt is a polite request, not a lock. Bots that ignore it can only be stopped at the firewall.
5. Deployment and test checklist
Before you change anything
- Copy your current robots.txt text and save it somewhere, so you can roll back in a minute.
- Find out where the file comes from. Open your site root (usually
public_html) with your host's File Manager or FTP. If a realrobots.txtfile is there, that is what gets served. If not, WordPress generates a virtual one, usually edited through your SEO plugin. - Answer questions 1–2 and fix the sitemap line and slugs in the new file if my guesses are wrong.
- Check for junk URLs already in Google. Look in Search Console → Pages, or search
site:www.example.com inurl:filter_andsite:www.example.com inurl:add-to-cart. Googlebot has been free to crawl these, so some may be indexed (see "Watch afterwards").
Deploy on WordPress/WooCommerce
- Edit the file in one place only:
- Physical file: replace the contents of
robots.txtin the site root. Use plain text, UTF-8, and a lowercase file name. - Yoast SEO: Yoast SEO → Tools → File editor.
- Rank Math: Rank Math → General Settings → Edit robots.txt. If a physical file exists, Rank Math locks this editor, so edit the physical file instead.
- Physical file: replace the contents of
- Set tag pages to noindex in your SEO plugin. In Yoast: Settings → Categories & tags → Tags → turn off "Show tags in search results". In Rank Math: Titles & Meta → Tags → Robots Meta → No Index. (Menu names are a guess; they vary by version.) Optional: do the same for WooCommerce product tags (
/product-tag/). - WordPress → Settings → Reading: make sure "Discourage search engines from indexing this site" is unticked.
- Clear every cache: your caching plugin, server cache and CDN (for example Cloudflare).
- If you use Cloudflare or a security plugin, check its AI-bot and bot-blocking settings. These tools can add their own lines to robots.txt or block bots at the firewall. If OAI-SearchBot or PerplexityBot are blocked there, allowing them in robots.txt does nothing.
- Open
https://www.example.com/robots.txtin a private window. It must show the new text and return status 200. If it returns a server error (5xx) for a long time, Google can stop crawling the whole site. - Check the other hosts. Each host and protocol has its own robots.txt, so
http://example.com/robots.txt,https://example.com/robots.txtandhttp://www.example.com/robots.txtshould all redirect to thehttps://wwwfile. - shop.example.com: make sure its robots.txt does not block crawling. Either let
/robots.txtredirect to www like every other URL there, or serve this minimal file:
# shop.example.com - old store. Every URL 301-redirects to https://www.example.com
# Crawling stays open so search engines can see and follow the redirects.
User-agent: *
Disallow:
Test
- Search Console → Settings → robots.txt report: check that www.example.com shows "Fetched", that the check time is after your change, and that there are no errors or warnings. Use "Request a recrawl" so Google picks up the new file sooner (Google can cache robots.txt for up to 24 hours). A Domain property (example.com) also shows the shop. and non-www hosts.
- URL Inspection → Test live URL for one product, one product category and one blog post:
- "Crawl allowed" should say Yes.
- View tested page → Screenshot should look normal.
- More info → Page resources should show none of your own CSS, JS or images as blocked by robots.txt.
- URL Inspection → Test live URL for
/?s=testand one filter URL. Both should come back as blocked by robots.txt. That proves the rules now apply to Googlebot. - Bing Webmaster Tools → robots.txt Tester: test a product image URL and a CSS file. Both should now be allowed.
- Run every URL from the test table above, using your real slugs, through a robots.txt tester built on Google's open-source parser.
Watch afterwards (check weekly for about 4 weeks)
Search Console → Settings → Crawl stats
- Host status → robots.txt fetch: should stay green. Any fetch failures mean a server problem to fix right away.
- By response: look for any new spike in 5xx errors.
- Example URLs:
?s=,?add-to-cart=,?filter_,/cart/and/checkout/should fade out over 1–3 weeks. - By file type: CSS, JavaScript and Image requests should stay about the same. A sharp drop means something is blocked by mistake.
- Total crawl requests: a dip at first is normal, because the wasted URLs are gone. Over time you want a bigger share going to
/product/,/product-category/and/blog/. Average response time may improve if add-to-cart hits were loading your server.
Search Console → Pages (Page indexing)
- "Blocked by robots.txt" should list only URLs you meant to block. If any
/product/,/product-category/or/blog/URL shows up there, fix it right away. - "Indexed, though blocked by robots.txt": search and filter URLs that Google indexed earlier may land here, because Google can no longer crawl them to see their noindex or canonical tag.
- A few is fine. They fade over time.
- If there are many (guess: there won't be): remove those Disallow lines for now, make sure those pages carry
noindex, wait until they drop out of Google, then put the block back.
- Tag pages should move to "Excluded by 'noindex' tag".
Server logs or hosting stats
- GPTBot and CCBot requests should stop within about a day. OAI-SearchBot and PerplexityBot should keep coming.
- With Crawl-delay gone, keep an eye on server load from Bingbot. If Bing crawls too hard, use Crawl Control in Bing Webmaster Tools instead of adding Crawl-delay back.
Lines like “check: pass” or “fixed” are the model talking to itself. The prompt tells it to review its own work before answering; that review is part of the output.
The prompt
First lines open so you can see how it is built. The rest opens after purchase.
#ROLE You are a technical SEO expert who has reviewed thousands of robots.txt files. Audit my robots.txt and give me a clean, safe version. #INPUTS Fill in every line. Leave a line blank if you don't know it. - Website: [WEBSITE URL] - Platform: [e.g., WordPress, Shopify, Magento, custom] - Paste my full robots.txt: [PASTE]
How to use it
- Buy, then open it in your account.
- Copy the prompt into ChatGPT, Claude or Gemini.
- Replace the 7 inputs with your product.
- Run it. Use the output. Re-run with a different tone if you like.
Pro tips
- Paste the whole file, including the Googlebot and AI bot groups. A bot obeys only the most specific group that names it, and that trips up many sites.
- Test your 5 most important URLs against the new file before you publish it.
- Keep a dated copy of the old robots.txt so you can roll back in a minute.
Before you buy
- Will it work for my product?
- Yes, if you can fill the 7 inputs. If the output is bad with your inputs, email us: we fix the prompt and refund you.
- Do I download a file?
- No. It lives in your account with a copy button, and updates when we improve it.
- Which model is best?
- Best on Claude. Works in ChatGPT, Claude and Gemini.
Works well with this
Prompts people use in the same campaign.
More in Crawling & Indexing
Buying more than two? Lifetime is cheaper.
Every prompt, every category, forever. $59 once. Nothing to download, nothing to renew.
This prompt
$3$7
- ✓ Instant access in your account, with a copy button
- ✓ Example input and real output included
- ✓ 7-day money-back, no form
Or get every prompt, forever
Lifetime Access · $59 $149 — all categories, all future prompts, rewrites included.
Get lifetime accessCard or PayPal · taxes at checkout · nothing to download
Not the one you need?
Browse every prompt by category and sub-category.