Skip to content

Free tools for SEO, AI search, Google Ads and local businesses. No sign-up. See all tools

DigitalSnot

Robots.txt Tester: Check Whether a URL Is Blocked

Test a URL against robots.txt and see which rule blocks or allows it.

  • Free to use
  • Nothing to install
  • No sign-up

How to use the Robots.txt Tester

Read what the guide says

This is the Robots.txt Tester.

It shows whether a crawler may fetch a page on your site, and which line decides.

Use it when you edit your robots.txt, to test a path before the change goes live.

It also warns if the whole site, CSS or JavaScript is blocked.

Fetch a site's robots.txt, or paste the file you're editing.

Here, it's a sample site for a made-up dental clinic.

Choose a crawler, then type the path to test.

Then press Test.

In a few seconds, you see that Googlebot may not fetch this page, and the rule that decides.

Disallow stops crawling, not indexing. To keep a page out of search, use noindex.

This box shows what to fix first: here, a blocked folder of CSS and JavaScript.

The checks that passed: the whole site isn't blocked, and the sitemap loads.

Open How to fix to see why it matters, the steps and where to edit the file on your platform.

Here, remove the rule that blocks /wp-includes/, which holds CSS and JavaScript.

Below, the file shows the deciding line, and lists any lines Google ignores.

Below that is a corrected file. Review it, then replace yours.

Edit your file, then test the path again.

To start a new file, build one below from simple options.

You can also email yourself a PDF of the result.

Generate a robots.txt

A quick file here. For a full file with site presets, each AI crawler and a line-by-line explanation, use the Robots.txt Generator.

Share this free tool

About the Robots.txt Tester

Fetch a site's robots.txt or paste your own, choose a crawler and a path, and see whether it is allowed and which line decides. We also warn if the whole site, CSS or JavaScript is blocked, check the sitemap loads, and hand you a corrected file. Below it, build a new robots.txt from simple options.

How it works

  1. Step 1

    Enter a website, or paste the contents of a robots.txt file you are editing.

  2. Step 2

    Choose a crawler and the path to test, such as /blog/my-post.

  3. Step 3

    See Allowed or Blocked, the matching rule, the sitemaps listed and any lines Google ignores.

How the matching works

A crawler follows the group that names it, otherwise the * group. Within that group, the longest matching rule wins, and allow wins a tie. * matches anything and $ marks the end of the URL.

Blocking is not removing

Disallow stops crawling, not indexing. A blocked URL can still appear in results if other pages link to it. Use noindex (and allow crawling) to keep a page out of search.

Frequently asked questions

Where does robots.txt go?

At the root of each host: https://example.com/robots.txt. A subdomain such as shop.example.com needs its own file.

Does Google support Crawl-delay?

No. Google ignores Crawl-delay. Bing and some other crawlers use it.

Should I block CSS and JavaScript?

No. Google needs them to render pages; blocking them can hurt how your pages are understood.

What happens if robots.txt returns a server error?

Google treats a 5xx response as "do not crawl" for a while. A 404 means everything may be crawled.

Sources and checks

Rules last checked

The Robots.txt Tester follows these official pages:

Scores, limits and suggestions marked "our checklist", "our measure" or "our suggestion" are ours, not Google's or the platform's. How our tools work

More free tools

All tools

Want us to fix what the tool found?

Tell us about your business and what you want to grow. We reply within one business day with next steps, not a sales script.

  • A reply within one business day
  • A quick look at your site and search visibility before we talk
  • Your details are only used to answer your enquiry

Prefer email or a call?

[email protected]

+91 70079 75411