What does a robots.txt tester do?
robots.txt is a small text file at the root of a website (for example https://example.com/robots.txt) that tells crawlers which addresses they may visit. It is a set of requests, not a lock: well-behaved crawlers such as Googlebot and Bingbot follow it, but it doesn't hide anything from people.
This tester fetches the file for the site you enter, works out which group of rules applies to each crawler, and checks whether the page you entered is allowed. It uses the same matching rules Google documents: a crawler follows the group that names it, or the "User-agent: *" group if none does; the longest matching path wins; and if an Allow and a Disallow rule are the same length, Allow wins. Wildcards (*) and end-of-address markers ($) are supported.
Google retired the robots.txt Tester in Search Console at the end of 2023. Its replacement, the robots.txt report, shows which file Google last fetched and any parsing problems, but it no longer lets you test a single address against the rules. This page fills that gap, for Google and for the other crawlers that matter now.
How do I read the results?
Each crawler gets one line: allowed or blocked, and the rule that blocks it.
- Googlebot and Bingbot: blocked is marked as a problem, because the page can't be crawled for Google or Bing search. Bing's index also feeds Copilot, DuckDuckGo and other assistants.
- OAI-SearchBot and PerplexityBot: these fetch pages so ChatGPT search and Perplexity can show and link to them. Blocked is marked as worth checking, because people increasingly ask AI assistants for recommendations.
- GPTBot, ClaudeBot, Google-Extended and CCBot: these collect text for training AI models. Blocking them is a legitimate choice and doesn't affect your search rankings, so the result is shown for information only.
- The file itself is shown at the bottom of the results, so you can see the exact lines.
The robots.txt mistakes that cost traffic
The most damaging one is a single line: "Disallow: /" under "User-agent: *". It blocks every page for every crawler. Site builders and developers often add it while a site is being built and forget to remove it at launch. The site then never appears on Google, or slowly drops out.
Next is a robots.txt that returns a server error (a 5xx code). Google treats that as "the whole site is off-limits" and pauses crawling until the file works again. A missing robots.txt (404) is fine: it means everything may be crawled.
Others are quieter: blocking the folders that hold the site's CSS and JavaScript (Google needs them to see the page as visitors do), misspelled lines such as "Disalow:" that crawlers silently skip, rules placed above the first User-agent line, and a "Noindex:" line, which Google stopped supporting in 2019.
How to edit robots.txt on your platform
Where the file lives depends on what your site runs on:
- WordPress: WordPress creates a virtual robots.txt. Edit it with your SEO plugin (Yoast: Yoast SEO → Tools → File editor; Rank Math: General Settings → Edit robots.txt) or upload a real robots.txt file to the site's root folder. If everything is blocked, check that "Discourage search engines from indexing this site" under Settings → Reading is unticked.
- Shopify: Shopify generates the file. To change it, add a robots.txt.liquid template in your theme's code editor (Online Store → Themes → Edit code). Only do this if you need to; the default is sensible.
- Wix: open the SEO settings in your dashboard and use the Robots.txt editor.
- Squarespace: the file can't be edited directly. The Crawlers settings control whether search engines and AI crawlers are blocked.
- Any other host: create a plain-text file called robots.txt in the site's root folder, so it opens at yourdomain.com/robots.txt. Each subdomain (shop.example.com, blog.example.com) needs its own.
- Cloudflare: its managed robots.txt and AI crawler settings can add rules to your file, so check the result here even if you never wrote one yourself.
robots.txt or noindex: which one do I need?
Use robots.txt to stop crawlers spending time on addresses that don't matter, such as internal search results, filters that create endless combinations, or admin areas.
Use a noindex tag to keep a page out of Google. robots.txt can't do that reliably: a blocked page can still be listed (with no description) if other sites link to it, and because Google can't crawl it, it never sees a noindex tag on it. So to remove a page from Google, let it be crawled and add <meta name="robots" content="noindex">. To get a page into Google, make sure neither is blocking it; our Google Indexability Checker tests both at once.
What this tester can't see
It reads robots.txt as the site serves it to us right now. Google keeps a copy for up to a day, so a change you just made may take that long to reach Google. Some firewalls and bot-protection services block crawlers in other ways (for example by refusing their requests outright), which robots.txt doesn't show; Search Console's URL Inspection tool shows what Googlebot actually gets. The CSS and JavaScript check covers the files linked from the page's HTML, not files loaded later by scripts.