robots.txt Tester (Free)

Know exactly which rule blocks which URL for which crawler, catch the mistakes Google silently ignores, and see the effect of a robots.txt change before it ships.

robots.txt Tester (Free) cover

What it does

Test any URL against a robots.txt the way Google documents it (RFC 9309: longest matching rule wins, ties go to allow, * and $ wildcards, percent-encoding, one group per crawler), lint the file, see which AI crawlers can fetch your site, and diff a new robots.txt against the live one before you deploy it.

python3 robots_check.py test robots.txt /blog/post /admin --ua Googlebot
python3 robots_check.py test robots.txt --urls urls.txt --ua Googlebot,Bingbot,GPTBot
python3 robots_check.py lint robots.txt
python3 robots_check.py ai robots.txt
python3 robots_check.py diff live.txt new.txt --urls important-urls.txt     # exit 1 if any URL becomes blocked
python3 robots_check.py fetch https://example.com/robots.txt -o live.txt    # optional download

Everything except fetch runs offline. --json on every command. Python 3.9+, standard library only. ./demo.sh shows each command on the examples; ./run_tests.sh runs the tests, which include every example table from Google's robots.txt documentation.

What you get

The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 10 tests OK on Python 3.13 and 3.10.

Real terminal output from robots.txt Tester: demo and passing tests

What test tells you

ALLOW / BLOCK, the exact rule and line number that decided it, and which group the crawler used. Crawler groups follow Google's rules: the most specific user-agent group wins, groups for the same crawler are merged, and * is not combined with a crawler's own group. Googlebot-Image, -Video, -News and Google-InspectionTool fall back to a Googlebot group, as listed in Google's crawler docs.

What lint catches

  • Disallow/Allow before any User-agent (ignored), typos (User agent, Dissallow, Sitemaps), lines without a colon
  • full URLs in Disallow, paths not starting with /, $ in the middle of a path, spaces in paths
  • Sitemap that isn't an absolute URL; no sitemap at all
  • a crawler with its own group silently dropping your * rules (the most common robots.txt mistake)
  • Disallow: / for * (staging file shipped to production?)
  • unsupported fields: Noindex, Crawl-delay (ignored by Google), Host, Clean-param
  • HTML served as robots.txt, files over Google's 500 KiB limit, byte order marks, duplicate groups, allow/disallow on the same path

AI crawlers (ai)

Shows ALLOW/BLOCK for / (or --path) for GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, Google-Extended, Applebot-Extended, meta-externalagent, Amazonbot, CCBot, Bytespider, MistralAI-User and DuckAssistBot, and whether each one is governed by its own group or by *. Google-Extended and Applebot-Extended are control tokens, not crawlers. User-triggered fetchers (ChatGPT-User, Perplexity-User and others) may not follow robots.txt at all, so blocking them here is a request, not a guarantee.

Honest limits

  • It reads a robots.txt file; it doesn't know how your server answers (a 4xx for robots.txt means "no restrictions" to Google; 5xx pauses crawling).
  • Blocking crawling doesn't remove a URL from search results; use noindex.
  • Other search engines differ in details (Bing and Yandex read Crawl-delay).

Format and license

Zip, 11 KB, v1.0, 10 files. Free to use, modify and share for any purpose, including commercial work, as long as this notice stays in copies. Not affiliated with or endorsed by Google or any crawler operator.

FAQ

Is it free?
Yes.
Does it match Google exactly?
It implements Google's documented rules and passes every example table on Google's robots.txt page; edge cases in other engines differ.
Does blocking GPTBot remove me from ChatGPT search?
No, search uses OAI-SearchBot; the ai report shows each separately.
How do I get the files?
Click Download free. The zip downloads straight away: no checkout, no account.
Do I have to sign up for the newsletter?
No. The form is optional and the download works without it.

Get robots.txt Tester (Free)

Free robots.txt tester and validator: test URLs with Google's matching rules, catch typos and dropped * rules, check GPTBot/ClaudeBot access, diff before deploy.

Pairs well with

Download$19

Email List Cleaning Skill

Clean an email list offline: typos, duplicates, disposable domains, role addresses, unsubscribe/bounce suppression and optional MX checks. Reason per row, no per-email fees.

View Email List Cleaning Skill
Download$19

CRM Duplicate Cleanup Skill

Find HubSpot and Salesforce duplicate contacts and companies from a CSV export: emails, Gmail aliases, phones, nicknames, Inc/LLC names. Master record, filled blanks, merge files.

View CRM Duplicate Cleanup Skill
Download$19

301 Redirect Mapper Skill

Map old URLs to new ones for a site migration, collapse redirect chains, catch loops, and export 301 rules for Apache, Nginx, Netlify, Vercel, Cloudflare and Shopify.

View 301 Redirect Mapper Skill

Related