DiagramPreview
Analisador básicoNo AILocal previewDebuggingExport

Testador robots.txt

Cole conteúdo para Testador robots.txt e gere uma prévia local revisável para depurar configurações, respostas de API, arquivos de SEO e snippets gerados por AI.

Exemplos
Robots decisionPronto
Your preview will appear here.

Continue com uma ferramenta relacionada

Leve esta prévia para um fluxo próximo para converter, depurar ou exportar.

Visualização HTML em Sandbox

Preview HTML components, email snippets, and landing sections in a script-blocked sandbox.

Abrir
Visualização de Gradiente CSS

Preview CSS linear, radial, conic, and repeating gradients with extracted color stops.

Abrir
Visualização de Imagem Base64

Preview Base64 image strings and data URLs with MIME type and size analysis.

Abrir

Como usar

  1. 1Put the target URL on the first line, then add --- and the robots.txt content.
  2. 2Check whether the URL is allowed or disallowed for the relevant user-agent.
  3. 3Review broad Disallow rules such as /, /api, /en, or wildcard paths before publishing.
  4. 4Confirm production behavior with Search Console or the crawler tools you rely on.

Casos de uso

robots.txt QATechnical SEO reviewIndexing issue debuggingAI robots snippet validationLaunch checklist

FAQ

What robots.txt mistake is most dangerous?

A broad Disallow such as / or a locale prefix can block important pages from crawling even when the sitemap lists them.

Does robots.txt remove indexed pages?

Not directly. It controls crawling. Use noindex or removal tools when you need deindexing behavior.

Why test a single URL?

A specific URL test makes broad rules and wildcard behavior easier to reason about than reading the file abstractly.

robots.txt Tester checks Allow and Disallow rules for a target URL so technical SEO changes can be reviewed before deployment.

It is useful when AI, CMS settings, or manual edits produce robots rules that look simple but accidentally block tool pages, docs, assets, or localized routes.

Use it together with sitemap and Open Graph preview checks before submitting important pages for indexing.

Demo: make sure tool pages are crawlable

Before launching a tool site, test representative URLs from each section. A single broad rule can block pages even when sitemap.xml is correct.

  • Test home, tool, blog, and asset URLs separately.
  • Avoid blocking locale prefixes such as /en or /zh-CN by accident.
  • Disallow /api/ without blocking documentation paths such as /api-error-flow-diagram.
https://diagrampreview.com/en/mermaid-preview
---
User-agent: *
Allow: /
Disallow: /api/
Sitemap: https://diagrampreview.com/sitemap.xml

SEO release checklist: test robots rules with real URLs

robots.txt should be reviewed with concrete URLs, not only by reading the file. Locale prefixes, API-looking slugs, and static asset paths are easy to block accidentally on a tool site.

  • Test one page from each major directory before submitting a sitemap.
  • Keep /api/ blocked if needed, but verify similar public slugs are not matched by mistake.
  • Pair robots checks with canonical, hreflang, and sitemap checks for launch review.
User-agent: *
Allow: /
Disallow: /api/
Sitemap: https://diagrampreview.com/sitemap.xml

Checklist de revisão para Testador robots.txt

Use Testador robots.txt para inspecionar visualmente conteúdo de origem antes de publicar documentação, notas de PR, incidentes ou handoffs. Testador robots.txt: Pré-visualize e depure esta fonte localmente.

Antes de exportar, confira legibilidade, relações, dados sensíveis e se a prévia ainda faz sentido após editar a entrada.

Limites e solução de problemas

Se a prévia falhar, reduza a entrada ao menor exemplo completo, valide a sintaxe e adicione as partes de volta aos poucos.

Trate a prévia como superfície de revisão, não como fonte de verdade. Resultados críticos ainda exigem validação humana.

Entradas de exemplo

  • Blog allowed: URL: https://example.com/blog/har-guide --- User-agent: * Disallow: /admin/ Allow: /blog/ Sitemap: https://example.com/sitemap.xml
  • Private blocked: URL: https://example.com/private/report --- User-agent: * Disallow: /private/ Allow: /private/public/
  • Sitemap rule: URL: /tools/jsonpath-tester --- User-agent: * Disallow: /api/ Allow: /tools/ Sitemap: https://example.com/sitemap.xml

Maturidade da ferramenta

Analisador básico

Analisador básico

Esta ferramenta prioriza inspeção rápida de estrutura. Use para revisão e depuração, depois valide resultados críticos.

O rótulo indica se a ferramenta é melhor para exportação estável, depuração, análise rápida ou geração com AI.