robots.txt tester

Paste a robots.txt, a path and a user agent. The tester applies Google's rule: the longest matching rule wins, and Allow wins a tie.

Runs in your browser. Nothing you type leaves this page.

How to use the robots.txt tester

Three steps, then the questions people ask most.

  1. Open yoursite.com/robots.txt in your browser and paste its text in the first box.
  2. Type the path to test, starting with a slash, for example /blog/my-post.
  3. Type the crawler's name, such as Googlebot, Bingbot or GPTBot. The answer names the group and rule that decide it.

Which rule wins when Allow and Disallow both match?

The one with the longer path. If both are the same length, Allow wins. This is how Google reads robots.txt, and it is written into the robots.txt standard, RFC 9309.

Does Disallow keep a page out of Google?

No. Disallow stops crawling, not indexing. A blocked page can still appear in results if other pages link to it. To keep a page out, let it be crawled and add a noindex tag.

Which group does a crawler follow?

The group whose User-agent line matches its name most closely. A crawler that has its own group ignores the * group completely, so rules you want for every crawler must be repeated in each group.

How fast does a change to robots.txt take effect?

Google usually keeps a copy of robots.txt for up to 24 hours, so a change can take a day to be seen.

More free SEO tools

Each one runs in your browser, with no account.