Skip to content
Free tools Let's talk

Free SEO tool

Robots.txt checker and tester

Enter a URL to see whether Googlebot, Bingbot or an AI crawler such as GPTBot or ClaudeBot may crawl it, and which line of the robots.txt decides. Paste a draft to test changes before you publish them, and catch blocked CSS, JavaScript and missing sitemaps.

1. What to test

A full URL tests that page. A bare domain tests the homepage.

2. Which robots.txt

The URL goes to our server, which fetches that site's public robots.txt and, for the CSS and JavaScript check, the page itself. Privacy notice

Each check uses 1 of your 100 free daily units. How it works

Verdict

Enter a URL and choose a crawler. The verdict, the rule that decides it and its line in the file show up here.

Beyond the tool

One wrong line can hide a whole site from Google.

We review crawling and indexing end to end: robots.txt, sitemaps, canonicals and the pages Google actually keeps. You get a short fix list, not a 90 page PDF.

Get an SEO proposalA fixed-price proposal within one working day

The guide

Robots.txt Checker: the complete guide

6 referencesMethodology and limitsUpdated 15 October 2026

Built and maintained by the designers and marketers at DEMARCA, an award-winning design studio in Portugal.

On this page
  1. What robots.txt does
  2. How to read the rules
  3. How to fix "Blocked by robots.txt" in Search Console
  4. Don't block CSS and JavaScript
  5. AI crawlers and robots.txt
  6. What happens when robots.txt is missing or broken
  7. Methodology and limits
  8. Sources

What robots.txt does

Robots.txt is a plain text file at the root of a site (https://example.com/robots.txt) that tells crawlers which paths they may request. Search engines read it before they crawl, and so do most AI crawlers. Since 2022 it has been an internet standard, RFC 9309, which describes the format that Google, Bing and others follow.

It controls crawling, not indexing. Google says plainly that robots.txt is not a mechanism for keeping a page out of Google: a blocked URL can still appear in results, without a description, if other pages link to it. To keep a page out of search, let Google crawl it and add a noindex robots meta tag, or protect it with a password.

It is also a request, not a lock. Googlebot and other well-behaved crawlers obey it, but nothing forces a crawler to, and the file is public, so never list private folders in it hoping to hide them.

How to read the rules

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

User-agent: GPTBot
Disallow: /

Sitemap: https://example.com/sitemap.xml
  • User-agent starts a group and names the crawler it applies to. * means every crawler that has no group of its own. Names are not case sensitive.
  • Disallow and Allow are path prefixes, matched from the start of the path. Paths are case sensitive: /Blog/ and /blog/ are different.
  • Wildcards: * matches any run of characters and $ marks the end of the URL, so Disallow: /*.pdf$ blocks every PDF.
  • Sitemap lines can go anywhere in the file and apply to every crawler.

Which rule wins

Two rules decide every result, and this checker applies both the way Google does. First, a crawler obeys only one group: the one with the most specific user agent that matches it. If there is a User-agent: GPTBot group, GPTBot ignores the * group completely, so rules you meant for everyone have to be repeated there. Second, inside that group the longest matching path wins, and when an Allow and a Disallow match with the same length, Google uses the least restrictive one, the Allow.

In the example above, /wp-admin/admin-ajax.php is allowed for Googlebot, because the Allow rule is longer than /wp-admin/. The same URL is blocked for GPTBot, whose own group disallows everything.

How to fix "Blocked by robots.txt" in Search Console

Search Console reports "Blocked by robots.txt" when Googlebot wanted a URL but a rule stopped it. Paste the URL above with Googlebot selected: the verdict shows the exact rule and its line. If the page should be in Google, remove or narrow that rule, then test the URL again with your edited file before you publish it. If the page should stay out of search, the better tool is noindex, which only works if Google can crawl the page and see it.

"Indexed, though blocked by robots.txt" is the opposite case: Google found links to a URL it may not crawl and indexed it anyway. If you want it gone, allow crawling and add noindex; blocking harder makes it worse, because Google can never see the noindex.

Google caches robots.txt for up to 24 hours, so changes take a while to apply. Google retired the old robots.txt Tester in Search Console in 2023; the robots.txt report in Search Console now shows which files Google fetched and when.

Don't block CSS and JavaScript

Google renders pages much like a browser to understand them. If robots.txt blocks the stylesheets or scripts a page needs, Google sees a broken or empty layout, which can hurt how it judges the page, for example on mobile. Google's advice is to block resources only when the page does not depend on them. Old WordPress setups often block /wp-includes/ or /wp-content/plugins/, which hold exactly those files. This checker reads the page you enter and tests each of its own CSS and JavaScript files against Googlebot's rules.

AI crawlers and robots.txt

Most AI companies now publish the names of their crawlers and say they honor robots.txt. They usually run several, for different jobs, and blocking one does not block the others:

PurposeExamplesWhat blocking does
TrainingGPTBot, ClaudeBot, CCBot, Google-Extended, Applebot-ExtendedAsks the company not to use your content to train its models.
AI searchOAI-SearchBot, Claude-SearchBot, PerplexityBotKeeps your pages out of that assistant's search answers, and the links in them.
User requestsChatGPT-User, Claude-User, Perplexity-UserFetches a page because a person asked the assistant to. OpenAI notes robots.txt rules may not apply to these.

Google-Extended is a token, not a separate crawler: Googlebot does the crawling and the token decides whether that content may be used for Gemini training and grounding. Google states that it does not affect inclusion or ranking in Google Search. Blocking Googlebot itself, on the other hand, removes you from Google Search entirely.

Whether to block AI crawlers is a business decision, not a technical error. Publishers selling their content often block training crawlers; businesses that want to be recommended in ChatGPT, Claude or Perplexity answers usually keep the search crawlers allowed.

What happens when robots.txt is missing or broken

If /robots.txt answers 404 or another 4xx error (except 429), Google treats the whole site as allowed. If it answers a 5xx server error, Google stops crawling the site for the first 12 hours and keeps trying, then uses its last good copy for up to 30 days. A robots.txt that keeps failing can therefore pause crawling of the whole site. Google also reads only the first 500 KiB of the file, and ignores Crawl-delay and Noindex lines (Bing and some other crawlers do read Crawl-delay).

Methodology and limits

What we fetch
The /robots.txt at the root of the host you enter (scheme, host and port), following its redirects. For the CSS and JavaScript check we also load the page itself, read up to 2 MB of its HTML, and fetch the robots.txt of up to 6 other hosts the page loads files from. With Test my own robots.txt, your text is tested instead and nothing is fetched from the live file.
Matching rules
RFC 9309, as Google applies it. A crawler follows only the group with the most specific user agent that matches it (groups naming the same agent are merged), otherwise User-agent: *. Inside that group the longest matching path wins, and Allow wins a tie. * and $ wildcards are supported, and paths are compared percent-encoded.
Missing or failing file
A 404, 410 or other 4xx answer means everything is allowed. A 5xx answer or no answer means Google treats the site as fully blocked for now, and the verdict says so.
Size
Pasted text up to 500 KB. Google reads only the first 500 KiB of a live file, and the report warns when a file is larger.
Crawler tables
16 AI crawlers and 6 search engine crawlers, each tested against the homepage (/), not against the URL you entered.
CSS and JavaScript
Stylesheets and scripts linked in the page's HTML (up to 200), each tested against Googlebot's rules in the robots.txt of the host that serves it: your own file for your host, the CDN's file for a CDN. If another host's robots.txt answers with a server error or not at all, its files count as blocked, as Google treats them. Files added later by JavaScript are not seen.
Timeouts
10 seconds per request.
Not covered
Whether a crawler really obeys the file (that is up to its owner), other crawlers' small differences from Google's rules, the copy Google has cached (up to 24 hours old, sometimes more), and robots meta tags or X-Robots-Tag headers. For those, use the meta tag checker.
Daily limit
Each check uses 1 of 100 free units per day per IP address, reset at midnight UTC.

Sources

Show all 6 sources

FAQ

Questions people ask

How do I check my robots.txt file?

Open yoursite.com/robots.txt in a browser to read it, or enter your domain in the checker above. The checker reads every group and rule, flags lines crawlers ignore, and tells you whether a given URL is allowed for Googlebot, Bingbot or an AI crawler, with the line that decides it. Inside Google, the robots.txt report in Search Console shows which version Google last fetched.

How do I fix "Blocked by robots.txt"?

Test the URL above with Googlebot to find the Disallow rule that matches it, then remove or narrow that rule. Paste your edited file with Test my own robots.txt to confirm the URL is allowed before you publish it. If the page should stay out of Google, let it be crawled and add noindex instead, because Google cannot see a noindex on a page it may not crawl.

I fixed my robots.txt. Why does Search Console still say blocked?

Google usually keeps its copy of robots.txt for up to 24 hours, and the report only changes after Google crawls the affected URLs again, which can take days or weeks. Check that the live file is the one you expect (this checker reads it fresh), then use Validate fix in the Search Console report or request indexing for the most important URLs.

If I block GPTBot, will my site disappear from ChatGPT?

Not necessarily. OpenAI runs separate crawlers: GPTBot for training, OAI-SearchBot for ChatGPT search results and ChatGPT-User for pages a person asks it to open. Blocking GPTBot asks OpenAI not to train on your content; to stay out of ChatGPT search answers you would block OAI-SearchBot too. Anthropic and Perplexity split their crawlers in a similar way, and the table in the checker shows each one.

What is robots.txt for?

It is a plain text file at the root of a site that tells crawlers which paths they may request, mainly to keep them away from admin areas, internal search results or endless filter pages. It controls crawling, not indexing: a blocked URL can still show up in Google if other pages link to it. To keep a page out of search results, use a noindex tag instead.

Can robots.txt be ignored?

Yes. Google, Bing and other reputable crawlers follow it, but it is a request, not a lock, and badly behaved bots ignore it. The file is also public, so listing a private folder in it can draw attention to it. Protect private content with a login, not with robots.txt.

Is robots.txt legally binding?

Robots.txt is a technical convention, not a law, and the standard itself says its rules are not a form of access authorization. Whether ignoring it has legal consequences depends on the country, the site's terms and what is done with the content, so treat it as a clear statement of your wishes rather than legal protection. For a specific case, ask a lawyer.

More free tools

See all 52 tools

Technical SEO audit

Let's make something matter.

We review crawling and indexing end to end: robots.txt, sitemaps, canonicals and the pages Google actually keeps. You get a short fix list, not a 90 page PDF.

  • A reply from a designer within one working day
  • A fixed-price proposal before any work starts
  • Senior-led work with clearly defined deliverables
  • Clients in Portugal, across Europe and further afield

Request a quote

Prefer email? hello@wearedemarca.com