Toolvist

Generador de robots.txt

Genera un archivo robots.txt para tu sitio web.

Generador de robots.txt gratuito

El Generador de robots.txt construye un archivo robots.txt que indica a los rastreadores de motores de búsqueda qué partes de tu sitio rastrear o evitar. Añade tus reglas y sitemap, y copia el resultado.

The companion file is produced by the XML Sitemap Generator, and its entries should match what this file permits. For canonicalising the pages it allows, the Canonical Tag Generator is the next step.

Cómo usar Robots.txt

  1. 1 Choose a preset for a common configuration, or start from a blank rule set.
  2. 2 Add user-agent groups, setting allow and disallow paths for each crawler you want to address.
  3. 3 Add the sitemap location and, if you need it, a crawl-delay directive.
  4. 4 Copy the generated file and upload it to the root of your domain.

Cómo usarlo

Introduce las rutas a disallow o allow (una por línea), fija el user-agent, añade la URL de tu sitemap y el robots.txt se genera en vivo.

  • Una regla por línea para allow/disallow
  • Referencia de sitemap opcional
  • Copia a la raíz de tu sitio

Preguntas frecuentes

Does a disallow rule hide a page from search results?

Not reliably, and this is the single most damaging misconception about the file. A disallowed URL can still be indexed if other pages link to it, because the rule prevents crawling rather than removal. The page will appear in results with a description drawn from whatever the crawler learned elsewhere. To keep a page out of the index you need a noindex directive on the page itself, which requires the crawler to be able to read it.

Where must the file live?

At the root of the domain, at exactly /robots.txt, with that name. A file in a subdirectory is not read by crawlers following the standard. This means each subdomain needs its own copy, and a site served from a subdirectory of another domain cannot host one that applies to its own paths.

What if there is no file at all?

Crawlers then assume everything is permitted, which is usually fine and occasionally disastrous — a staging environment left reachable and unmentioned gets crawled and competing with the live site. An explicit file is not required by the standard, but having one gives you a place to record the decisions you have made.

Herramientas SEO y para webmasters relacionadas

Ver todo en Herramientas SEO y para webmasters →

También te puede interesar

Herramientas de otras categorías que suelen combinarse con Robots.txt:

Explorar el directorio completo →