Robots.txt tester: check if a URL is allowed or blocked

Enter a page URL and a user agent, and this robots.txt tester fetches the site's robots.txt, tells you whether the URL is Allowed or Blocked and shows the rule and line that decided it. You can also edit the file and test a draft.

  • Free
  • No sign-up
  • Checked on our server

Loading the tool…

Checked on our server: the address or domain you enter is sent over HTTPS to run the check. We don't keep it or the results.

How to use Robots.txt Tester

  1. Type the full URL of the page you want to test.
  2. Enter the user agent, such as Googlebot, or pick one of the quick choices (Googlebot, Bingbot, Googlebot-Image, GPTBot or *).
  3. Press "Test URL" and read the verdict, the matching rule with its line number and the user-agent group that was used.
  4. To try a change, edit the file in the text box and use "Test edited version". A draft is tested only in your browser.

Features

  • Verdict Allowed or Blocked, with the matching rule and its line number
  • Shows which user-agent group was used
  • Shows robots.txt with line numbers, its Sitemap lines and the lines that are ignored
  • Edit and test a draft, which runs only in your browser
  • Fetches /robots.txt of the site, following up to 5 redirects and reading the first 500 KiB
  • Follows the matching rules of RFC 9309: the most specific (longest) rule wins, and Allow wins a tie
  • Supports the * wildcard and the $ end-of-URL marker
  • Requests use the User-Agent OneVixaBot/1.0 and send no cookies

Examples

InputResult
Rules: Disallow: /private/ and Allow: /private/help.html. URL: https://example.com/private/help.htmlAllowed. Both rules match, and the longer Allow rule wins.
Rules: Disallow: /*.pdf$. URL: https://example.com/files/guide.pdfBlocked. The * matches any characters and $ requires the URL to end with .pdf.
Rules: Allow: /page and Disallow: /page. URL: https://example.com/pageAllowed. Both rules are the same length, so Allow wins the tie.

Limitations

  • A 4xx response for robots.txt, for example when the file does not exist, is treated as everything allowed. A 5xx response or an unreachable server is treated as everything blocked, as in RFC 9309.
  • Crawl-delay and other lines outside RFC 9309 are listed as ignored. Google ignores Crawl-delay.
  • Paths are case-sensitive. /Photo/ and /photo/ are different.
  • Only http:// and https:// on ports 80 and 443. Private, local and reserved addresses are refused.
  • Other crawlers may interpret robots.txt slightly differently, so this shows the standard behavior, not a guarantee for every bot.
  • The URL is sent to the OneVixa server, which fetches the file. URLs are not logged or stored. Limit of 30 checks per minute.

Learn more

A robots.txt file sits at the root of a site and tells crawlers which paths they may request. It is made of groups. Each group starts with one or more User-agent lines and is followed by Allow and Disallow rules. A crawler picks the group whose name best matches its product token, ignoring case, and falls back to the * group when nothing matches.

Inside the group, every rule whose path matches the start of the URL is a candidate. The longest one wins, and Allow wins a tie. A * matches any run of characters and a $ at the end means the URL must end there. The file /robots.txt itself is always fetchable.

The most common misunderstanding is that robots.txt hides pages. It only asks well-behaved crawlers not to fetch them. A blocked page can still be indexed without its content if other pages link to it, and a noindex tag on a blocked page is never seen. Do not use robots.txt to protect private data.

Frequently asked questions

Does robots.txt stop a page from appearing in search results?

No. It controls crawling, not indexing. A blocked URL can still be indexed from links on other sites. To keep a page out of the index, use a noindex tag and let crawlers fetch the page.

Which rule wins when Allow and Disallow both match?

The longest matching rule wins. If both are the same length, Allow wins.

What happens if my site has no robots.txt?

A missing file (a 4xx response) means crawlers may crawl everything. If the server errors (5xx), RFC 9309 says to treat everything as blocked.

Is my draft sent to your server?

No. When you edit the file and test it again, the matching runs only in your browser.

Sources

Last reviewed: October 1, 2026