Checked on 2026-11-24.
How to use it
Open the site's robots.txt in your browser, at /robots.txt on the site's own host, copy all of it and paste it above. Then type the address or path you want to test and the name of the crawler. The answer changes as you type: Allowed or Blocked, the rule that decided, the group of rules it came from, and every rule that matched with its length, so you can see why the longest one won. Under that come the Sitemap lines of the file and the lines worth a second look: rules that can never match, misspelt field names, records the standard does not define.
A robots.txt speaks only for the place it is served from. Google's robots.txt documentation says the rules "apply only to the host, protocol, and port number where the robots.txt file is hosted", so shop.example.com and http://example.com each have a file of their own. Test an address with the file of its own host.
How the answer is worked out
The tester follows RFC 9309, the Robots Exclusion Protocol, which the IETF published in September 2022. Step by step:
- The group. A group is one or more
User-agentlines followed by rules. A crawler looks for the group that names its product token, and the match is case-insensitive (section 2.2.1). Several groups that name it are combined into one. If none does, it obeys the*group; if there is no*group either, no rules apply. A crawler with a group of its own ignores the*group altogether: in the example, Googlebot may fetch/admin/, because its group says nothing about it. - The rule. Each
AllowandDisallowpath is compared with the address from the first character of its path, and the comparison is case-sensitive. "The most specific match is the match that has the most octets", and when an Allow and a Disallow rule are equivalent, the Allow rule is used. No matching rule means the address is allowed, and/robots.txtitself is always allowed (section 2.2.2). The tester measures a rule by the length of its path after percent-encoding, special characters included; Google's documentation, too, picks the most specific rule "based on the length of the rule path". - Special characters.
*stands for any run of characters, slashes included, and$marks the end of the path, soDisallow: /*.pdf$blocks addresses that end in .pdf but not/report.pdf?page=2.#starts a comment (section 2.2.3). To match a real*or$in an address, a rule writes%2Aor%24. - Percent-encoding. Characters outside ASCII are compared as their percent-encoded UTF-8 bytes, so
/ツand/%E3%83%84are the same path, an example Google's documentation gives too. An encoded letter, digit, hyphen, dot, underscore or tilde, the characters RFC 3986 calls unreserved, is decoded first. The tester does this to the rules and to the address alike, and shows the path it compared. - Field names and empty rules.
User-agent,AllowandDisallowmay be written in any case, as every literal string in the standard's grammar is case-insensitive (RFC 5234, section 2.3). A rule with no path,Disallow:on its own, matches nothing; Google's documentation says crawlers ignore such rules.
A missing file is the simplest case. If a server answers /robots.txt with a status code from 400 to 499, a crawler "MAY access any resources on the server" (section 2.3.1.3). An empty box here means the same: no groups, so everything is allowed. A server error is different: when the file cannot be reached because of a server or network error, the crawler "MUST assume complete disallow" (section 2.3.1.4).
Crawlers that read it differently
Google's introduction to robots.txt warns that "different crawlers interpret syntax differently". This page describes only what a crawler's own documentation says, and for Google that is How Google interprets the robots.txt specification:
- Groups and rules work as above. Google's crawlers pick the group with the most specific matching user agent, and "user agent specific groups and global groups (*) are not combined". When rules conflict, "including those with wildcards, Google uses the least restrictive rule".
- Fields. Google reads
user-agent,allow,disallowandsitemap; "other fields such as crawl-delay aren't supported". - Status codes. Google treats every 4xx answer except 429 as if there were no robots.txt. For a server error it stops crawling the site for the first 12 hours while it keeps asking for the file, then uses the last good copy for up to 30 days, and "if there's no cached version available, Google assumes there's no crawl restrictions". That last point is less strict than RFC 9309's complete disallow.
- Size. Google reads the first 500 KiB of the file and ignores the rest. RFC 9309 asks every crawler to read at least that much (section 2.5). The tester reads the whole text and tells you when it is longer.
- Crawlers outside the protocol. Google says the protocol "isn't applicable to Google's crawlers that are controlled by users (for example, feed subscriptions), or crawlers that are used to increase user safety (for example, malware analysis)". Its overview of crawlers adds that AdsBot "ignores the global robots.txt user agent (*) with the ad publisher's permission".
For any other crawler, read its own documentation before you rely on a rule that depends on wildcards, on a field other than these four, or on how it treats a missing file.
Where it stops
- It tests what you paste. It does not fetch the file, follow redirects or look at status codes, so it cannot tell you what a crawler got when it asked your server.
- Names are product tokens. RFC 9309 allows only letters, hyphens and underscores in a crawler's name. A value such as
googlebot/1.2is read asgooglebot, as Google's documentation reads it too, and a name with digits is cut where the first digit is. A line with several names separated by commas is read as its first name only; give each crawler a line of its own. - Paths that start with
*are accepted, as in the standard's own exampleDisallow: *.gif$, although its grammar says a path starts with/; an erratum reported in 2024 points out the mismatch. - Sitemap lines are listed as written. sitemaps.org says a Sitemap line holds the full address of the sitemap and does not depend on the User-agent lines around it; the tester notes one without
http://orhttps://. - It is not a lock. RFC 9309 says its rules "are not a form of access authorization". A crawler that does not obey robots.txt fetches what it likes, and Google says that when a page is blocked by robots.txt, its URL "can still appear in search results, but the search result won't have a description". To keep a page out of Google, it points to
noindexor a password.
Get the data automatically
When a page is allowed and you want its text, the page content endpoint reads one page and returns its content as Markdown or text, with its title, description, headings and word count. It respects robots.txt: a page the site's robots.txt closes to crawlers answers 404 not_allowed.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/web/content",
params={"url": "https://docs.apify.com/academy"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
# not_allowed (closed by robots.txt), page_not_found, needs_javascript, ...: not charged
print(res.json()["error"]["code"])
else:
res.raise_for_status()
page = res.json()["data"]
print(page["title"], page["wordCount"], "words")A request costs 1 credit. A page that robots.txt closes, a page that does not exist, a site that refuses automated requests and one that does not answer cost nothing. One request reads one page; links are not followed.
Questions
When an Allow and a Disallow rule both match, which one wins?
The longer one: RFC 9309 uses the match with the most octets. If both are the same length, the Allow rule wins. So Allow: /admin/help/ beats Disallow: /admin/ for /admin/help/start, and the order of the lines in the file does not matter.
Why does Googlebot ignore my User-agent: * rules?
Because the file has a group for Googlebot. A crawler obeys only the group that names it; the * group is for crawlers that have no group of their own, and the two are not combined. Repeat the rules you need in the Googlebot group.
Does "Disallow:" with nothing after it block anything?
No. A rule without a path matches nothing, so a group with only "Disallow:" allows everything. Google's documentation says its crawlers ignore rules without a path.
Are robots.txt paths case-sensitive?
Yes. RFC 9309 says the matching should be case-sensitive, so Disallow: /Private does not block /private. The field names (User-agent, Allow, Disallow) and the crawler names are not case-sensitive.
What happens if a site has no robots.txt?
If the server answers with a 4xx status, crawlers may fetch everything (RFC 9309, section 2.3.1.3). Google treats every 4xx except 429 that way. A server error is another matter: the standard tells crawlers to assume everything is disallowed, and Google pauses crawling and then falls back to its last copy of the file.
Does blocking a page in robots.txt keep it out of Google?
No. Google says a page blocked by robots.txt can still appear in results, without a description, when other pages link to it. Use a noindex rule or a password to keep it out.
Does this tool send what I paste anywhere?
No. The test runs in your browser and fetches nothing. Nothing you paste or type leaves the page.
Need this for many accounts, or in your code? The Pipefetch API returns the data as JSON, one GET request at a time. Get an API key with 100 free credits, no card needed.
APIs that return this data
Guides
- How to turn a web page into Markdown in Python
- How to check robots.txt in Python before you fetch a page
More free tools
- Instagram engagement rate calculator
- TikTok engagement rate calculator
- YouTube engagement rate calculator
- X (Twitter) engagement rate calculator
- LinkedIn engagement rate calculator
- Facebook engagement rate calculator
- SRT to VTT converter
- VTT to SRT converter
- Subtitle file to plain text
- YouTube video ID finder
- YouTube timestamp link generator
- YouTube thumbnail downloader
- Email extractor
- HTML to Markdown converter
- X API cost calculator
- JSON to CSV converter
- CSV to JSON converter
- cURL to Python converter
- cURL to JavaScript fetch converter
- Google search snippet preview
- Meta title and description length checker
- Instagram profile viewer
- Instagram profile picture viewer