Robots.txt checker
Check that a robots.txt is valid and see which crawlers may fetch a page, and which line decides.
More in Web
How a crawler reads the file
A robots.txt is a plain text file at the top of a site. It tells crawlers which paths they may fetch. It is a request, not a lock: crawlers that follow the standard stop, and others do not. The file is made of groups. A group starts with one or more User-agent lines and holds the rules that follow, each an Allow or a Disallow with a path.
A crawler uses the group that names it, and the group for * only when none does. Then it keeps every rule in the group whose path matches the address, and the longest one wins. When an Allow and a Disallow are equally long, Allow wins. That is the matching Google documents (RFC 9309), and this page follows it, including * for any run of characters and $ for the end of the address. Nothing is fetched for the addresses you test: they are matched against the rules.
| Rule | What it matches | Not this |
|---|---|---|
Disallow: /private/ | /private/ and everything under it | /private (no slash at the end) |
Disallow: /*? | Every address with a query string | /page |
Disallow: /*.pdf$ | Addresses that end in .pdf | /file.pdf?download=1 |
Allow: /shop/sale | A longer rule that beats Disallow: /shop/ | /shop/other, which stays blocked |
Disallow: with nothing after it | Nothing: it allows everything |
What the checker shows
- A verdict on the file: readable, with notes or warnings, or with errors. Notes never lower it, warnings do, and a line crawlers would skip is an error.
- The rule duel: pick an address and a crawler and see whether it is allowed, which group applied, every matching rule with its length, and the one that decided.
- A grid of crawlers: Googlebot, Bingbot, the AI crawlers and anything you add, for one address or several, with the deciding line under each answer.
- The file line by line, groups, sitemap lines, and any Content-Signal line.
- How the server answered: a missing file, an empty one, a web page where a file belongs, a server error and redirects are told apart, because crawlers treat each differently.
You can also paste a file and test it before you publish it. A pasted file is read for this one request, then forgotten: it is not stored, logged or put in the address.
How to use it
- Enter a site or a pageType
example.com, or a page such asexample.com/blog/post. We read the robots.txt at the top of the site, and test the page you typed as well as the home page. - Read the answer, then the duelThe answer says whether the file is readable. The duel under it tests one address for one crawler. Change either box and test again; the link keeps what you tested.
- Fix what the checks nameEach check says which line and gives the corrected line to write. Run it again after you publish. Crawlers keep their own copy of the file for a while, so a change can take a day to be noticed.
# The same check as JSON, for a script or an agent
curl "https://lookupowl.com/api/v1/tools/robots-txt-check?url=example.com&agents=GPTBot&paths=/blog/"When there is no file, or the server fails
Crawlers do not all treat a problem the same way, so the page says which one you have. A missing file (a 404 or 410) means there are no rules, so everything is allowed. A server that answers with an error (a 5xx, or a 429) is different: Google pauses crawling the site and may act as if it were blocked until the file comes back. A web page served where the file belongs is read as no file. A site that answers us with a bot check cannot be read from here, and we say that instead of guessing.
We fetch the file as LookupOwl. A crawler uses its own name, so a site that serves different files to different visitors can show a crawler something else. For the page itself, try the AI readiness checker and the HTTP headers checker, which shows an X-Robots-Tag header.
Questions people ask
Does Disallow remove a page from Google?
Not by itself. It stops crawlers from fetching the page, but a blocked page can still appear in results if other sites link to it. Use a noindex rule on a page that crawlers can fetch to keep it out.
Do you fetch the pages I test?
No. Test addresses are matched against the rules only. We fetch the robots.txt file of the site you enter, once, and nothing else.
Which rule wins when two rules match?
The longest one. When an Allow and a Disallow are equally long, the Allow wins. The duel shows every matching rule with its length, so you can see why.
Is a crawler named in the file always blocked?
No. A crawler uses the group that names it and ignores the group for all crawlers. A group that only allows something leaves everything else allowed for that crawler.
Does Google read Crawl-delay or Noindex in robots.txt?
No. Google ignores Crawl-delay, which Bing and some others read, and stopped supporting Noindex in robots.txt. Use a robots meta tag or an X-Robots-Tag header to keep a page out of results.
How big can a robots.txt be?
Google reads the first 500 KiB and ignores the rest. The page flags a longer file and tells you where it was cut.
Is the file I paste kept?
No. It is read for that one request, and is not stored, logged, cached or put in the page address.
Use it from AI, the API or the command line
Every LookupOwl tool is also a free API and an MCP tool, with no key and no account. This one is robots_txt_check. Please be kind to the rate limits.
curl "https://lookupowl.com/api/v1/tools/robots-txt-check?q=github.com"claude mcp add --transport http lookupowl https://lookupowl.com/mcp