Analyzer

Free Robots.txt Tester & Checker

Test any URL against a robots.txt file for Googlebot, Bingbot, GPTBot and other crawlers. See whether it is allowed or blocked and which rule decided it.

Paste a robots.txt, or load the live one for the host above.

Crawlable? Get it indexed

Once robots.txt lets crawlers in, IndexBoost finds your new and updated URLs and submits them to Google, Bing and IndexNow automatically.

Get started free

Context

How robots.txt matching works

  1. 01

    The longest matching rule wins

    Google compares every Allow and Disallow path that matches the URL and applies the longest one. Allow: /shop/sale beats Disallow: /shop/. When two matching rules are the same length, Allow wins.

  2. 02

    A crawler follows one group only

    Groups are not combined. Googlebot uses the group that names it most specifically. Only when no group names it does it fall back to User-agent: *. So a Googlebot group with one rule ignores everything in the * group.

  3. 03

    Wildcards and the $ anchor

    * matches any sequence of characters and $ marks the end of the URL. Disallow: /*.pdf$ blocks every PDF but not /file.pdf?download=1. Disallow: /*?sort= blocks sorted listing URLs anywhere on the site.

  4. 04

    Paths are case-sensitive

    Disallow: /Admin/ does not block /admin/. User-agent names are not case-sensitive, but the paths in your rules must match the real URLs exactly.

  5. 05

    Each host has its own file

    https://example.com/robots.txt covers only that protocol and host. blog.example.com, http:// and any non-standard port each need their own robots.txt at their own root.

How to test robots.txt in four steps

  1. Enter a full URL from the site you want to check, including https://.
  2. Pick a crawler. Googlebot covers Google Search. Bingbot also feeds DuckDuckGo and Yahoo results. GPTBot, ClaudeBot and PerplexityBot are AI crawlers.
  3. Load the live file to test what is deployed now, or paste a draft to test changes before you ship them.
  4. Read the verdict and the matched rule. If the result surprises you, change the rule in the text box and test again until it behaves as intended.

Five robots.txt mistakes that block the wrong pages

1. Blocking CSS and JavaScript

Google renders pages like a browser. If /assets/ or /wp-includes/ is disallowed, Googlebot may see a broken layout and judge the page as not mobile-friendly. Test one of your stylesheet or script URLs as Googlebot. It should come back Allowed.

2. A staging rule that reached production

A staging Disallow: / that gets deployed to the live site stops all crawling. After every release, run your homepage through the tester as Googlebot.

User-agent: *
Disallow: /

3. Prefix rules that are too short

Rules match from the start of the path. Disallow: /p blocks /p/123, but also /pricing and /products. End directory rules with a slash, and use $ when you mean one exact URL.

4. Using robots.txt to hide pages

A disallowed page can still be indexed from links, and anyone can read your robots.txt. Use noindex for pages that must stay out of search, and authentication for anything private.

5. A crawler group that drops the shared rules

Once you add User-agent: Googlebot, Googlebot stops reading the * group. Copy the shared rules into each named group.

User-agent: *
Disallow: /cart/
Disallow: /search

# Googlebot ignores the group above, so repeat the rules
User-agent: Googlebot
Disallow: /cart/
Disallow: /search
Allow: /search/help

A safe starting robots.txt

Most sites need only a few lines. Block internal search, cart and account pages, then list your sitemap so crawlers find every URL you want indexed.

User-agent: *
Disallow: /cart/
Disallow: /account/
Disallow: /*?sessionid=

User-agent: GPTBot
Disallow: /

Sitemap: https://example.com/sitemap.xml

Need a file from scratch? Build one with the robots.txt generator, then test it here. To see which AI bots can reach your site, run the AI crawler access checker. For a single page, the indexability checker also checks noindex, canonical and status codes, not just robots.txt.

Allowed is not the same as indexed

Passing this test means a crawler may fetch the page. It does not mean the page is in Google or Bing. New and updated pages can wait days or weeks to be crawled. Submitting them through the Google Indexing API and IndexNow speeds that up.

Common questions

← All free tools