Tools / Infantry / robots.txt, sitemap and hreflang tester

01 · Infantry · Open

robots.txt, sitemap and hreflang tester

Check what your robots.txt allows each search engine and AI bot, review the sitemap with its indexes and confirm hreflang is reciprocal. All from one URL. No signup.

The URL's path is what gets tested. Afterwards you can change the path or the bot without spending another check.

Sample resultTested: www.tusitio.example/blog/guia-de-implantes/Sample data

Who can read this path

According to robots.txt10 known bots and yours

Recalculated as you type, with the robots.txt already read.

  • Search engines
  • GooglebotGoogle
    Allowed

    Group *: no rule touches this path.

  • BingbotMicrosoft · Bing and Copilot
    Allowed

    Group *: no rule touches this path.

  • AI answers
  • OAI-SearchBotOpenAI · ChatGPT search
    Blocked

    Group OAI-SearchBot: Disallow: /blog/, line 11.

  • PerplexityBotPerplexity
    Allowed

    Group *: no rule touches this path.

  • Claude-SearchBotAnthropic · Claude search
    Allowed

    Group *: no rule touches this path.

  • Claude-UserAnthropic · when someone asks it to read your page
    Allowed

    Group *: no rule touches this path.

  • AI training
  • GPTBotOpenAI
    Blocked

    Group GPTBot: Disallow: /, line 8. Doesn't affect search or answers: it's your call.

  • ClaudeBotAnthropic
    Blocked

    Group ClaudeBot: Disallow: /, line 8. Doesn't affect search or answers: it's your call.

  • Google-ExtendedGoogle · Gemini
    Allowed

    Group *: no rule touches this path.

  • Applebot-ExtendedApple
    Allowed

    Group *: no rule touches this path.

  • Your bot
  • SemrushBotThe bot you typed
    Allowed

    Group *: no rule touches this path.

This is what robots.txt says. A firewall or CDN can block a bot even if the file allows it: the auditor measures that.

robots.txt for www.tusitio.example · 200 · 14 lines

The deciding lines are highlighted
User-agent: *Disallow: /carrito/Disallow: /cuenta/Allow: /cuenta/registro/User-agent: GPTBotUser-agent: ClaudeBotDisallow: /User-agent: OAI-SearchBotDisallow: /blog/Dissallow: /tmp/Sitemap: https://www.tusitio.example/sitemap_index.xml
  • Line 13Dissallow: /tmp/ The field is misspelled. Google corrects it and applies the rule, but other bots may ignore it.
  • SitemapDeclares /sitemap_index.xml, which exists and is an index.
To open this path to OAI-SearchBot
User-agent: OAI-SearchBot
Allow: /blog/guia-de-implantes/

Add it at the end of the file. To open a whole section, remove the line that blocks it instead.

Sitemap

Declared in robots.txtIndex with 4 sitemaps

1,240URLs read
0on another domain
0with http://
6with parameters
312without lastmod
0with invalid lastmod

What to review

  • Warning6 URLs carry query parameters: they are usually duplicate content.
  • Warning312 entries have no lastmod. Without a date, the search engine cannot tell what changed.
  • Fails1 of 8 checked URLs return an error. The sitemap should list only pages that exist.

Documents

  • sitemap_index.xmlindex · 4 sitemaps
  • post-sitemap.xml812 URLs
  • page-sitemap.xml36 URLs
  • product-sitemap.xml392 URLs · 6 with parameters
  • category-sitemap.xml.gzCompressed: not read

Up to 20 sitemaps from an index and 5,000 URLs are read. Compressed .gz files are not opened yet.

Sample: 8 URLs requested from the server

  • 200/Responds
  • 200/servicios/implantes/Responds
  • 200/blog/guia-de-implantes/Responds
  • 200/blog/blanqueamiento-dental/Responds
  • 200/tienda/kit-de-limpieza/Responds
  • 200/contacto/Responds
  • 301/promociones/ → /ofertas/Redirects
  • 404/blog/ortodoncia-invisible/Not found

A sitemap should list only final URLs that respond 200.

Hreflang

Read from the page's <head>4 language versions

  • es-MX/blog/guia-de-implantes/This page
  • es-ES/es-es/blog/guia-implantes/Reciprocal
  • en/en/blog/dental-implants-guide/No return linkResponds 200, but does not link back to this page. Google ignores the pair.
  • pt-BR/pt/blog/guia-implantes/RedirectsRedirects to /pt-br/blog/guia-implantes/. Use the final URL.
  • Lists itself
  • Valid codes
  • One language, one URL
  • No x-default

Up to 10 versions are requested to check the return link. If one blocks the check, it shows as unverifiable and does not count.

Corrected block for the <head>

Same on all 4 versions
<link rel="alternate" hreflang="es-MX" href="https://www.tusitio.example/blog/guia-de-implantes/">
<link rel="alternate" hreflang="es-ES" href="https://www.tusitio.example/es-es/blog/guia-implantes/">
<link rel="alternate" hreflang="en" href="https://www.tusitio.example/en/blog/dental-implants-guide/">
<link rel="alternate" hreflang="pt-BR" href="https://www.tusitio.example/pt-br/blog/guia-implantes/">
<link rel="alternate" hreflang="x-default" href="https://www.tusitio.example/blog/guia-de-implantes/">

Paste it on the versions that do not link back (en) too: without that link, Google discards the pair.

x-default points to the version shown to anyone who matches no language.

What gets checked

01

Access per bot

Which robots.txt group applies to each search engine and AI bot, and which rule decides on that path.

02

The file

Misspelled lines, rules outside a group and declared sitemaps that do not exist.

03

Sitemap

Indexes and child sitemaps, URLs on another domain, without https or without lastmod, and a sample that responds.

04

Hreflang

That every language version links back, with valid codes, final URLs and x-default.

Questions about robots.txt, sitemaps and hreflang

What about Google's tester?

Google retired its robots.txt tester in 2023. Search Console shows whether it read the file, but it does not let you test a path with a specific bot.

Does blocking GPTBot take me out of ChatGPT?

No. GPTBot collects training data; ChatGPT's search answers use OAI-SearchBot. That is why answer bots and training bots are kept apart.

Can I test a robots.txt before publishing it?

Yes. Paste it and test paths and bots in your browser, without touching your site.

Does allowed mean the bot gets in?

It means robots.txt doesn't stop it. A firewall can still block it; the URL auditor makes the real request and reports it.

How much of the sitemap does it check?

Up to 20 sitemaps from an index and 5,000 URLs, plus 8 pages requested from the server to see that they respond.

Do I need to sign up?

No. Saving and comparing checks takes a free account.