Skip to content

WooCommerce robots.txt Generator and Tester

This free WooCommerce robots.txt generator tests your store's file as Googlebot against real product, cart and filter URLs. It then writes a new robots.txt that keeps your own rules and drops the harmful ones.

Try

  • No sign-up or email
  • Evidence behind every result
  • Rules from the official docs
WooCommerce robots.txt report with a score and checks for blocked assets and filter URLs above a recommended robots.txt file
How it works

How to create a robots.txt for WooCommerce

  1. Enter your store address

    We read your robots.txt and find a real product, category, cart page and theme file on your store.

  2. See what Googlebot can crawl

    Each tested URL shows Crawlable or Blocked and names the exact rule that decided it.

  3. Edit and upload the new file

    Edit the recommended robots.txt on the page and copy or download it. Paste it into Rank Math or Yoast, or upload it to your site root.

What it checks

What the robots.txt tester looks for

Every rule is read the way Googlebot reads it. The most specific user-agent group applies and the longest matching rule wins.

A blocked store

A Disallow: / line stops Googlebot from crawling your homepage and every product page. A staging copy of the site can leave this line behind.

Blocked theme files and images

We test a stylesheet, a script and an image from your homepage, plus admin-ajax.php (the file many themes use to load page parts). Google needs all of them to render your pages.

Blocked products and categories

We test one real product and one category from your store's public product feed (the WooCommerce Store API). A blocked product can show in search with no description.

Open filter and sort URLs

We test add-to-cart links and the sort, filter and price URLs (orderby, filter_ and min_price). Sort and filter URLs show the same products under many addresses.

File status and sitemap line

We flag a missing robots.txt and a missing Sitemap: line. We also flag a server error (5xx). Google pauses crawling of the whole site when robots.txt returns one.

Rules Google ignores

Google stopped reading noindex and nofollow lines in robots.txt in 2019. It also skips crawl-delay. Bing still reads that line.

What is a WooCommerce robots.txt file?

A WooCommerce robots.txt is a plain text file at yourstore.com/robots.txt that tells crawlers which URLs they may request. A good one keeps bots away from cart pages and filter copies of your categories. Products, categories and the files that build each page stay open.

WordPress serves a virtual file when no real one exists. It blocks /wp-admin/ and allows admin-ajax.php. It adds a Sitemap: line when the site is open to search engines.

That default knows nothing about your store. It leaves every add-to-cart, sort and filter URL open to crawlers.

Does robots.txt stop a page from being indexed?

No. robots.txt controls crawling, and a blocked URL can still show in Google with no description when other pages link to it. To keep a page out of results, leave it crawlable and add a noindex robots meta tag to the page.

Google has to crawl the page to see that tag. A robots.txt block hides it.

Should you block the WooCommerce cart and checkout in robots.txt?

You can, but the gain is small. WooCommerce already adds a noindex and nofollow tag to the cart, checkout and My account pages to keep them out of search results. Blocking them in robots.txt only saves a few crawl requests.

If one of those pages already shows in Google, leave it open until Google recrawls it and sees the noindex. Block it after that.

The generator uses the cart, checkout and account links it finds on your homepage. It falls back to the WooCommerce defaults when it finds none.

What does the WooCommerce robots.txt generator block?

The WooCommerce robots.txt generator blocks the admin area, cart and checkout pages, add-to-cart links and the sort, filter and price copies of your categories. It leaves every product, category, image, stylesheet and script open. Google needs those files to render the page the way a shopper sees it.

RuleWhat it doesWhy
Disallow: /wp-admin/Blocks the dashboardNothing there for search. WordPress adds it by default.
Allow: /wp-admin/admin-ajax.phpReopens one admin fileThemes and plugins load page parts through it.
Disallow: /*?add-to-cart=Blocks add-to-cart linksEvery product in a list carries one.
Disallow: /*?orderby=Blocks sorted copiesSorting by price or date repeats the same products.
Disallow: /*?filter_Blocks attribute filtersColor and size filters in WooCommerce add filter_ to the URL.
Disallow: /*?min_price=Blocks price filtersAdd the same rule for max_price and rating_filter.
Disallow: /cart/Blocks the cartDo the same for checkout and my-account with your real paths.
Sitemap:Points to your sitemapUse the full URL. Any crawler can read it.

Each parameter rule needs two versions. /*?orderby= catches it as the first parameter and /*&orderby= catches it after another one. The generator above writes both.

Faceted navigation and crawl budget in WooCommerce

Faceted navigation is the color, size and price filters in your shop sidebar. Every combination of filters creates a new URL with the same products. Google's faceted navigation guide says to block those URLs in robots.txt when you do not need them in search.

Blocking them keeps Googlebot on your products and new pages. Your server also spends less time building filter pages that bring in no search visitors.

Some filter plugins build paths such as /color/blue/ with no parameter. Block those path patterns too. Faceted URLs are one of the checks in our eCommerce SEO audit guide.

If a filtered view earns real searches, such as red dresses, make it a proper category and keep it open.

Common robots.txt mistakes on WordPress stores

The robots.txt mistakes that hurt a WordPress store most block too much. A leftover Disallow: / hides the whole shop, and old advice to block /wp-content/ hides the CSS and photos Google needs. Others rely on rules Google stopped reading years ago.

  • Staging rules left live: A "Disallow: /" line copied from a test site blocks the whole store. The "Discourage search engines" box under Settings > Reading no longer writes this line. Since WordPress 5.3, it adds a noindex tag instead.
  • Blocked /wp-content/ or /wp-includes/: Google cannot load your CSS, JavaScript or product photos.
  • Noindex in robots.txt: Google stopped reading it on September 1, 2019.
  • Blocking a page to remove it: Google can keep a blocked URL that other sites link to. Use noindex for that job.
  • A separate Googlebot group: Google follows only the most specific group. Once Googlebot has its own group, the rules in the * group stop applying to it.
  • Crawl-delay for Google: Google ignores the line. It sets its crawl rate from how fast your server answers.

How to edit robots.txt in WordPress

Edit robots.txt in WordPress with your SEO plugin or by uploading a plain text file to the site root. Rank Math edits it under Rank Math SEO > General Settings > Edit robots.txt. Yoast SEO has its own File editor under Yoast SEO > Tools.

A real robots.txt file on the server always wins over the virtual one. Rank Math edits only the virtual file. Delete a real robots.txt with FTP or your host's file manager before you use the Rank Math editor.

Google caches robots.txt for up to 24 hours. The robots.txt report in Search Console shows the version it fetched and lets you request a recrawl.

Sources

More free tools

More free tools for WordPress sites

FAQ

WooCommerce robots.txt questions

Plain answers on what to block, what to leave open and how Google reads the file.

Ask us a question

Yes. It reads your live robots.txt, tests your store URLs and writes a new file with no account or email. You can edit the file on the page and copy or download it.

Our server fetches your public homepage, robots.txt and one product from the WooCommerce Store API. The result is cached for 6 hours and then expires. There is no account and nothing is tied to your name.

At yoursite.com/robots.txt in the site root. If no real file is on the server, WordPress builds a virtual one on each request. Rank Math and Yoast let you edit it from the dashboard.

No. Those folders hold your theme CSS, JavaScript and product photos. Google renders pages like a browser and needs those files to see your store the way shoppers see it.

A 4xx error means Google crawls as if no file existed. A 5xx error stops Google from crawling the whole site for the first 12 hours. After that Google uses the last good copy for up to 30 days.

Yes. A Sitemap: line with the full URL helps crawlers find your products. The generator adds the sitemap it finds at sitemap_index.xml, wp-sitemap.xml or sitemap.xml when your file names none.

Only if your current file already does. The generator keeps your other crawler groups exactly as they are. Our free llms.txt generator in the tools menu shows which AI crawlers can read your store.

Get your WooCommerce robots.txt and crawl budget right

The WooCommerce robots.txt generator writes one file. Our WooCommerce SEO service fixes robots.txt, filter URLs, sitemaps and the product pages Google should see first.

Support within hours A real person replies
14-day money back Fair terms
Always compatible Latest WP and Woo
Custom builds Made for your store

Why store owners pick us

What comes with every plugin you buy.

  • 26 premium WooCommerce plugins
  • 500+ five-star reviews
  • Served in 158+ countries
  • Elite Author on Envato
  • HPOS and latest Woo ready
  • Support that replies in hours
Pedro Lima, DevDiggers customer Kareem Al Samman, DevDiggers customer Valentina Dancheva, DevDiggers customer Diego Lopes, DevDiggers customer 5 star rating from 500+ reviews

Trusted worldwide

Store owners in 158+ countries run on DevDiggers.

Alan, DevDiggers customer Shiyanthan M, DevDiggers customer Pawel Pytasz, DevDiggers customer Marius, DevDiggers customer

Proven on Envato

Elite Author with $125,000+ in sales.