Free tool · No signup

Robots.txt Tester

Enter any page. We read its robots.txt and tell you which search engines and AI crawlers may visit it, and what to fix.

Free. No signup. Results in seconds.

What it checks

What the robots.txt tester looks at

  • Whether Googlebot and Bingbot may crawl the page you entered
  • Whether ChatGPT search (OAI-SearchBot) and Perplexity can see it
  • Which AI training crawlers are blocked (GPTBot, ClaudeBot, Google-Extended, CCBot)
  • A whole-site "Disallow: /" left over from building the site
  • Server errors and web pages served in place of robots.txt
  • Blocked CSS and JavaScript, misspelled rules, Noindex and Crawl-delay lines, Sitemap lines

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.

Questions

Frequently asked questions

How do I check if a URL is blocked by robots.txt?

Enter the full address above and press Test robots.txt. You'll see, for Google, Bing and the main AI crawlers, whether that exact page is allowed and which rule blocks it. To check by hand, open yourdomain.com/robots.txt, find the User-agent group that applies, and look for a Disallow line that matches the start of the page's path.

Does blocking a page in robots.txt remove it from Google?

Not reliably. robots.txt stops Google crawling the page, but the address can still be listed, without a description, if other pages link to it. To remove a page, let Google crawl it and add a noindex tag, or use the Removals tool in Search Console for an urgent temporary removal.

Should I block ChatGPT and other AI bots?

It depends what you want. Blocking training crawlers such as GPTBot or Google-Extended keeps your text out of future model training and doesn't affect search rankings. Blocking OAI-SearchBot or PerplexityBot makes it less likely that ChatGPT or Perplexity will show and link to your site when people ask for recommendations. Many businesses allow the search crawlers and decide separately about training.

Do I need a robots.txt file?

No. Without one, every crawler may crawl everything, which is fine for most small sites. A short file is still useful for pointing crawlers at your sitemap and keeping them out of areas such as internal search results.

What happened to Google's robots.txt Tester?

Google removed it from Search Console in late 2023. The robots.txt report replaced it: it shows the robots.txt files Google found for your site, when it last fetched them, and any warnings. To test a specific page, use URL Inspection in Search Console or the tester on this page.

How long does Google take to notice a robots.txt change?

Usually within a day, because Google generally caches robots.txt for up to 24 hours. In Search Console's robots.txt report you can ask Google to fetch it again sooner.

Is this robots.txt tester free?

Yes. Test as many pages as you like without signing up. Results are not published.