Get started
Free tool

Robots.txt tester

Paste a robots.txt file, enter a URL and pick a crawler, from Googlebot to GPTBot. See whether it is allowed or blocked, the exact rule and line that decided it, and any syntax problems. Runs in your browser; nothing you paste is sent anywhere.

robots.txt

Paste the whole file. The example above blocks GPTBot and CCBot everywhere and keeps every crawler out of /admin/.

What to test

Only the path and query string count; the domain is ignored.

Result

Checking…

Syntax check

    Fix it, then check the live file

    Build a corrected file with the free robots.txt generator. Once it is uploaded, the AI crawler checker reads the live robots.txt from your site.

    Every preset crawler for
    CrawlerWho and whyResultDeciding rule

    What this robots.txt tester does

    robots.txt is the plain text file at the root of a site that tells crawlers which URLs they may fetch. This tester reads a file you paste, works out which group of rules applies to the crawler you pick, finds every rule that matches your URL, and tells you which one wins and on which line it sits. It also tests the same URL for eleven common search and AI crawlers at once, so you can see in one table whether Googlebot, Bingbot, GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and the rest can reach it.

    The matching follows RFC 9309, the published robots.txt standard that Google, Bing, OpenAI, Anthropic and Perplexity say their crawlers obey. It is the same logic the CiteGaps AI readiness checker and AI crawler checker use on live sites.

    How the rules are matched

    • Groups. A group starts with one or more User-agent lines in a row, followed by its rules. Several user agents on consecutive lines share the same rules.
    • Which group. A crawler follows every group that names it and ignores the * group. Only when no group names it does it fall back to *.
    • Which rule. Among the rules in that group, the one with the longest matching path wins. When an Allow and a Disallow of the same length both match, Allow wins.
    • Wildcards. * matches any run of characters, and $ at the end means the URL must end there. Disallow: /*.pdf$ blocks every URL ending in .pdf.
    • Empty Disallow. Disallow: with nothing after it blocks nothing, so it allows everything.

    How to read the results

    The result box names the group the crawler followed and the deciding line. If it says no rule matched, the URL is allowed because nothing in that group covers it. The syntax check lists lines crawlers skip: rules placed before any User-agent line, misspelled directives, paths that do not start with /, full URLs where a path belongs, and directives such as Crawl-delay and Noindex that Google does not read.

    Common mistakes

    • Expecting the * group to add to a named group. If you write a group for GPTBot, GPTBot no longer reads the * rules at all. Repeat any shared Disallow lines inside the named group.
    • A blank line inside a group. Blank lines are fine, but a stray directive between two User-agent lines splits them into separate groups, and the first may end up with no rules.
    • A leftover Disallow: / from a staging site, which blocks every crawler from the whole site.
    • Blocking answer crawlers by accident. A broad rule meant for training crawlers can also catch OAI-SearchBot, Claude-SearchBot or PerplexityBot, which fetch pages for live answers and citations.

    Why it matters for SEO and AI search

    A crawler that is blocked cannot read the page, so it cannot rank it, quote it or cite it. For classic search that means Googlebot and Bingbot. For AI answers it also means the answer crawlers: ChatGPT search uses OAI-SearchBot, Claude uses Claude-SearchBot and Perplexity uses PerplexityBot. Training crawlers such as GPTBot, ClaudeBot, CCBot and the Google-Extended token are a separate choice; blocking them does not remove you from AI answers. Test the pages that matter most, such as your pricing page, product pages and best guides, for both kinds.

    Once crawlers can reach your pages, check that the pages are easy to quote with the free website SEO checker, and run a free AI visibility check to see whether ChatGPT and Gemini already name your brand.

    Questions

    How does a crawler pick which rules to follow?

    It looks for groups whose User-agent line names it, ignoring case. If any exist, it follows those and ignores the * group completely. If none do, it follows the * group. If there is no * group either, it may fetch everything.

    What happens when an Allow and a Disallow rule both match?

    The rule with the longest path wins, counted in characters. If both are the same length, Allow wins. That is why Allow: /admin/help opens one page inside a blocked /admin/ folder.

    Is the path match case-sensitive?

    Yes. Disallow: /Admin does not block /admin. The user agent name is not case-sensitive, so gptbot and GPTBot are the same group.

    Does this tester send my robots.txt anywhere?

    No. The file is parsed and tested in your browser, and nothing you paste leaves the page. To read the live file from a site instead, use the free AI crawler checker.

    Why is a page still in Google if robots.txt blocks it?

    robots.txt controls crawling, not indexing. Google can index a blocked URL from links pointing to it and show it without a description. To keep a page out of search, allow crawling and add a noindex robots meta tag.

    Access is the start

    See who AI recommends
    in your market.

    CiteGaps tracks your buyers' questions on ChatGPT, Gemini, Perplexity and Google's AI every week, and drafts the content that gets you named.

    7-day free trial, no card · 7-day money-back guarantee · Cancel anytime