Run a free audit

Robots.txt tester

Enter a URL to see if crawlers are allowed to fetch it, and view the site's robots.txt and sitemaps.

Run a full graded audit for the whole site.
  1. Home
  2. /
  3. Free tools
  4. /
  5. Robots.txt tester

A robots.txt tester checks whether a specific URL on a website is allowed or blocked by that site's robots.txt file, which contains instructions controlling how search engines and other crawlers access content.

On this page

  • What is robots.txt?
  • How to test a URL with this robots.txt tester
  • Common robots.txt mistakes this tester catches
  • How robots.txt affects your SEO and crawlability
  • Understanding crawl control vs. indexation control
  • Testing robots.txt before deployment

What is robots.txt?

A robots.txt file is a plain text file placed in the root directory of a website (for example, example.com/robots.txt). It contains directives that tell web robots—including search engine crawlers like Googlebot and Bingbot, plus other automated visitors—which pages and resources they can and cannot access on your site.

The file uses a simple text format with specific directives. User-agent specifies which crawler the rule applies to; Disallow tells crawlers not to access a path; Allow (supported by Google) tells crawlers they may access a path even if a broader Disallow rule would block it; Crawl-delay and Request-rate are older directives mostly ignored by modern crawlers; Sitemap points to your sitemap for search engine discovery.

A basic example looks like this: User-agent: * Disallow: /admin/ Disallow: /temp/ Allow: /admin/public/ Sitemap: https://example.com/sitemap.xml This tells all crawlers not to access /admin/ or /temp/, but allows access to /admin/public/, and provides the location of the site's sitemap.

Important: robots.txt controls whether a crawler can fetch a page. It does NOT prevent a URL from being indexed if the page is linked to from somewhere a crawler can reach. If another website links to a blocked URL, search engines may still index it based on that link—they just won't be able to see the page's content. To truly prevent indexing, you need a meta robots noindex tag or an x-robots-tag header instead.

How to test a URL with this robots.txt tester

  1. 1Enter the full URL you want to test in the input field. Include the protocol (https:// or http://) and the complete path. Examples: https://example.com/products/blue-widget or https://blog.example.com/posts/2024/how-to-test-robots
  2. 2Click the Test button to run the check
  3. 3The tool fetches the robots.txt file from the root of the domain in your URL (in this case, https://example.com/robots.txt)
  4. 4The tool parses the robots.txt file and checks whether your URL matches any Disallow rules, Allow rules, or other directives that would affect crawl access
  5. 5View the result: the tool displays whether the URL is allowed (can be crawled) or blocked (cannot be crawled). If blocked, it shows which specific rule blocked it

The test uses the official Google robots.txt parsing standard (RFC 9309) to simulate how a search engine crawler interprets the rules, ensuring accuracy and compliance with how real crawlers behave.

When a URL shows as Allowed, it means the crawler can fetch that page if it finds a link to it; there is no robots.txt rule preventing access. When it shows Blocked, the robots.txt file contains a Disallow rule (or other directive) that prevents the crawler from accessing that specific URL pattern.

Common robots.txt mistakes this tester catches

The most dangerous robots.txt mistakes are those that accidentally block important content. Testing individual URLs before deploying changes prevents these costly errors.

  • Over-broad Disallow rules: Using Disallow: /search/ blocks all URLs starting with /search/, but if you meant to only block one search directory, you've blocked too much. Testing both /search/public and /search/admin reveals the scope of your block.
  • Trailing slash inconsistencies: Disallow: /admin (without slash) typically does not block /admin/ URLs. Testing both /admin and /admin/ shows the difference on your server.
  • Typos in User-agent names: If you type User-agent: Googlebot-Image but misspell it as Googlebot-Imagee, that rule applies to no real crawler. Testing catches this because the rule never matches.
  • Blocking entire directories by accident: Disallow: /assets/ blocks all CSS, JavaScript, and images in that directory, which breaks page rendering. Search engines cannot fetch the styles and scripts needed to understand your pages.
  • Using robots.txt to control indexing instead of crawl: Many site owners expect robots.txt Disallow to prevent indexing, but it only prevents crawling. A page blocked by robots.txt but linked from another site may still appear in search results without its content indexed.

Testing before deployment is the fastest way to catch these mistakes. If you're making changes to robots.txt, test a sample of your top pages, product pages, blog posts, and any other critical URLs to ensure none are accidentally blocked.

How robots.txt affects your SEO and crawlability

robots.txt has a direct, measurable impact on SEO because it controls which pages search engines can crawl and analyze. A misconfigured robots.txt can eliminate your organic traffic; a well-configured one can improve crawl efficiency and rankings.

Crawl budget is the concept underlying robots.txt's importance. Search engines have finite resources and only crawl a certain number of pages per site per day. Large sites, news sites, and sites with many parameter-heavy or duplicate URLs frequently hit crawl budget limits. A well-configured robots.txt blocks wasteful crawls of /admin/, /temp/, /user-settings/, /search-results/ with lots of parameters, and other non-indexable pages. This preserves crawl budget for the pages that matter—your homepage, product pages, blog posts, and other content meant to rank.

If robots.txt accidentally blocks key pages, Google cannot fetch them, cannot see their content, and cannot rank them. A typo that blocks /products/ instead of /products-on-sale/ removes all products from search results. Testing before deploying prevents this catastrophe.

robots.txt also affects discovery speed. Search engines use robots.txt and sitemaps to schedule crawls. If you add a new product section and want Google to crawl it faster, ensuring it's not blocked and adding it to your sitemap accelerates discovery. Conversely, placing a Disallow rule in front of a new section delays its appearance in search results.

For sites concerned about AI training: robots.txt is the standard mechanism to block AI crawlers like GPTBot (OpenAI), Bingbot-Web, Anthropic's crawlers, and others. Testing that these user-agent blocks work correctly is essential if protecting your content from AI training data collection is important to your business.

Understanding crawl control vs. indexation control

A critical misconception: robots.txt is one of three separate crawl and indexing control mechanisms, and they work at different stages. Understanding the difference prevents wasted testing and configuration mistakes.

robots.txt controls whether a crawler can fetch a page in the first place. A page blocked by robots.txt cannot be crawled; the crawler never downloads it and never sees its content. This is a hard stop at the fetch stage.

Meta robots tag (in the page's HTML head): <meta name="robots" content="noindex, nofollow"> tells crawlers not to index the page and not to follow its links, even if robots.txt allowed the fetch. The crawler can still download and read the page; it just skips indexing and link-following. This only works for pages the crawler is allowed to reach.

X-Robots-Tag HTTP header works the same way as meta robots but is sent in the HTTP response header instead of in HTML. Same stage: blocks indexing, not crawl.

In practice: robots.txt blocks crawl; meta robots blocks indexing. A page blocked by robots.txt never shows any other directives because the crawler never reaches it. A page allowed by robots.txt but blocked by noindex appears in your Search Console's Coverage report as Crawled but not indexed—the crawler could fetch it, but indexing was refused. You need meta robots or x-robots-tag to prevent indexing; robots.txt alone only controls fetch access.

Testing robots.txt before deployment

If you are making changes to your robots.txt file, always test them before uploading to your live site. A mistake deployed to production can reduce organic traffic immediately.

  • Test your top 10 pages to ensure none are accidentally blocked
  • Test at least one URL from each major section (products, blog, help center, pricing, etc.)
  • Test URLs with query parameters if your site uses them heavily (e.g., /products?color=blue&size=large)
  • Test both versions of domain-sensitive URLs, especially if you use both www and non-www variants or both http and https
  • Test a few deep pages at least 3 levels down in your site hierarchy
  • If you are adding a new Allow rule to override a Disallow, test a specific URL that should be allowed

After deploying your robots.txt changes, wait 24–48 hours for Google to refetch your robots.txt file (this can be accelerated using Google Search Console's URL inspection tool). Then check the Coverage report to see if crawl patterns change as expected. Watch for any new URLs appearing in the Blocked by robots.txt category if that was unintended.

If you find that the live site is behaving differently than expected, you can test your current live robots.txt against your URLs using this tester to confirm what is actually blocking them. Sometimes the issue is not robots.txt but a meta robots tag or an x-robots-tag header added by your CMS or security plugin.

Frequently asked questions

What is a robots.txt used for?+

robots.txt tells search engines and other crawlers which pages they can and cannot access on your website. It is used to conserve crawl budget by blocking non-essential pages like /admin/, to prevent indexing of duplicate content, to guide search engines toward important pages, and to block AI training crawlers if you wish to opt out of AI data collection. It does not prevent indexing entirely—it only prevents crawling. A URL blocked by robots.txt but linked from another site may still appear in search results without its content.

How to test a robots.txt file?+

Use a robots.txt tester to enter any URL on your site and see whether that URL is allowed or blocked by the site's robots.txt rules. Enter the full URL (including https:// and the path), click Test, and the tool will fetch your robots.txt, parse it, and show you whether that URL matches any Disallow or Allow rules. If blocked, it shows which rule blocked it. This is the fastest way to verify your robots.txt configuration is correct before deploying changes and to debug why a page is or is not being crawled.

How to fix blocked by robots.txt error?+

If a page is blocked by robots.txt and you want it to be crawlable, edit your robots.txt file to remove the Disallow rule that blocks it. For example, if Disallow: /products/ is blocking your products, remove or narrow that rule. If you need to block a broader directory but allow a specific subdirectory, use the Allow rule: User-agent: * / Disallow: /products/ / Allow: /products/public/. After editing, use this tester to verify the URL is now allowed, then deploy the change to your live site. Wait 24 hours for Google to refetch and re-crawl the URL.

Is robots.txt legal?+

Yes, robots.txt is legal and widely recognized as the standard mechanism for controlling crawler access. It is explicitly supported in the Web Content Accessibility Guidelines and is part of RFC 9309, an official internet standard for robots.txt behavior. Using robots.txt to block crawlers is legal; using it to block only specific crawlers (like AI training bots) while allowing search engines is also legal and common. However, robots.txt is voluntary—a malicious crawler can ignore it. For legally enforced access control, use HTTP authentication or server-level IP blocking instead.

Can a URL be indexed if it's blocked by robots.txt?+

Yes, but only if it's linked to from a page that is not blocked. A URL blocked by robots.txt cannot be crawled directly, so its content is not known to the crawler. However, if another website links to that URL, or if it's mentioned in a sitemap, search engines may still include it in search results based on the link or reference—they just won't be able to see the page's content. To prevent both crawling and indexing, use a noindex meta tag or x-robots-tag header in addition to or instead of robots.txt.

Related free tools

On-page SEO scorerOn-page meta checkerWebsite speed testMobile-friendly test

On this page

  • What is robots.txt?
  • How to test a URL with this robots.txt tester
  • Common robots.txt mistakes this tester catches
  • How robots.txt affects your SEO and crawlability
  • Understanding crawl control vs. indexation control
  • Testing robots.txt before deployment