Protego field desk

Free security tool

robots.txt Checker, Tester and Validator

Fetch robots.txt the way Google does, test URLs with a reason for every verdict, check AI crawler access, compare a draft before you deploy, and see what the file reveals to attackers.

Quick answer

Enter a domain to fetch robots.txt on every host variant and see what Google does with each response. Test up to 50 URLs against any crawler with the exact matching line, check AI crawler access, lint common mistakes, compare a draft before you deploy, and see which sensitive paths the file reveals to attackers.

Check a robots.txt file

Protego requests /robots.txt on http and https, with and without www, and up to three sitemaps on the same site that the file allows. Disallowed paths are never requested. Shared lookup limits apply.

robots.txt generator

Build a starter file from a few choices, then test it above.

Crawler choices

Do not list admin panels or backups here. Anyone can read robots.txt; protect those with authentication instead.

How Google reads robots.txt

Google requests /robots.txt at the root of each protocol and host. The file only covers that host: rules on https://example.com do not apply to https://www.example.com or to the http version. What Google does depends on the response:

  • 2xx: the rules apply.
  • 4xx other than 429: Google treats the site as having no restrictions. A 401 or 403 does not block crawling.
  • 5xx, 429 or a network error: Google stops crawling the site for up to 12 hours, then uses the last good copy for up to 30 days. A failing robots.txt is one of the most damaging silent SEO problems.
  • Redirects: Google follows at least five hops, then treats the file as a 404.
  • Size: Google reads the first 500 KiB and ignores the rest.

Inside the file, a crawler obeys only the group that names it most specifically, or the User-agent: * group if none does. Within that group the longest matching rule wins, and Allow wins a tie. * matches any characters and a final $ anchors the end of the URL. Paths are case sensitive. The tester above follows these rules and is checked against the test cases from Google's open-source parser.

robots.txt or noindex?

robots.txt controls crawling, not indexing. A blocked URL can still appear in Google without a snippet if other pages link to it. To keep a page out of results, let Google crawl it and send a noindex robots meta tag or X-Robots-Tag header. Google stopped supporting noindex inside robots.txt in 2019.

AI crawlers in robots.txt

AI companies use separate tokens for search and for training, so you can stay visible in AI answers while opting out of training. Blocking a training token does not affect classic search.

TokenOperatorTypeWhat blocking it does
GooglebotGoogleSearch enginesGoogle Search crawling. Blocking it removes pages from normal crawling.
BingbotMicrosoftSearch enginesBing Search crawling. Bing also honours crawl-delay.
ApplebotAppleSearch enginesSearch features in Spotlight, Siri and Safari.
OAI-SearchBotOpenAIAI search and answersOpenAI says sites that opt out are not shown in ChatGPT search answers.
ChatGPT-UserOpenAIAI search and answersFetches a page when a ChatGPT user asks. OpenAI says robots.txt rules may not apply to these user-initiated visits.
Claude-SearchBotAnthropicAI search and answersIndexes pages for search inside Claude.
Claude-UserAnthropicAI search and answersFetches a page when a Claude user asks. Anthropic says blocking it stops those retrievals.
PerplexityBotPerplexityAI search and answersSurfaces and links sites in Perplexity results. Perplexity says it is not used for model training.
Perplexity-UserPerplexityAI search and answersFetches a page when a Perplexity user asks. Perplexity says it generally ignores robots.txt for these requests.
GPTBotOpenAIAI training onlyCollects content that may be used to train OpenAI models.
ClaudeBotAnthropicAI training onlyCollects content that may be used to train Anthropic models.
Google-ExtendedGoogleAI training onlyControls use for Gemini training and grounding. Google says it does not affect inclusion or ranking in Google Search.
Applebot-ExtendedAppleAI training onlyControls use of Applebot-crawled content for Apple model training. It does not crawl by itself.
CCBotCommon CrawlAI training onlyBuilds the Common Crawl dataset, which many AI models are trained on.
BytespiderByteDanceAI training onlyByteDance crawler commonly associated with AI training. We did not find official documentation from the operator.
meta-externalagentMetaAI training onlyMeta crawler used for AI training and product indexing.

List last reviewed 2026-11-23 against each operator's documentation.

What happened to the Search Console robots.txt Tester?

Google retired the robots.txt Tester in December 2023. The robots.txt report in Search Console now shows which files Google fetched, when, and any parsing problems, and lets you request a recrawl after an urgent fix. It does not test individual URLs or drafts, which is what this page is for.

robots.txt is a security file too

Because the file is public, it is one of the first things an attacker reads. Lines such as Disallow: /admin-old/ or Disallow: /backup.zip point straight at the places you least want visited, and well-behaved crawlers are the only ones that obey them. Treat every Disallow as public information, and use the free vulnerability scanner to check what else your site exposes.

Frequently asked questions

What replaced the robots.txt Tester in Google Search Console?

Google retired the robots.txt Tester in December 2023 and replaced it with the robots.txt report, which shows the files Google found and when it last crawled them. The report does not let you test a URL or try a draft. This page does both, using the matching rules Google documents.

Does Disallow remove a page from Google?

No. Disallow only stops crawling. Google can still index a blocked URL from links and show it without a snippet. To remove a page, allow crawling and add a noindex robots meta tag or X-Robots-Tag header. If the page is blocked, Google never sees the noindex.

What happens if robots.txt returns an error?

Google treats 4xx responses other than 429 as if there were no robots.txt, so everything may be crawled. A 5xx, a 429 or a network error makes Google stop crawling the site for up to 12 hours, then use its last good copy for up to 30 days. Redirects are followed for at least five hops.

Why check http, https, www and non-www separately?

Each protocol and host has its own robots.txt. Rules at https://example.com/robots.txt do not apply to https://www.example.com/ or http://example.com/. If a variant redirects, Google follows the redirect and uses the target file for that host.

Will blocking GPTBot or Google-Extended hurt my search traffic?

Training-only tokens such as GPTBot, ClaudeBot, Google-Extended, CCBot and Applebot-Extended do not control search. Google says Google-Extended does not affect inclusion or ranking in Google Search. Blocking AI search crawlers such as OAI-SearchBot, Claude-SearchBot or PerplexityBot is different: their operators say opted-out sites are not shown or cited in their answers.

Is robots.txt a security control?

No. robots.txt is public and polite crawlers follow it voluntarily. Listing admin panels, backups or staging folders hands attackers a map. Protect those paths with authentication, remove backups from the web root, and use noindex headers for pages you only want out of search.

What does this checker request, and what stays in my browser?

A live check sends the domain to Protego, which requests /robots.txt on up to four host variants and up to three declared sitemaps on the same site that the file allows. It never requests disallowed paths. Testing URLs, the draft diff, the linter and the generator all run in your browser.

References