robots.txt
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://tldfyi.com/iframe/glossary/robots-txt/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://tldfyi.com/glossary/robots-txt/
Add a dynamic SVG badge to your README or docs.
[](https://tldfyi.com/glossary/robots-txt/)
Use the native HTML custom element.
robots.txt es un archivo de texto plano ubicado en la raíz de un dominio (p. ej., example.com/robots.txt) que indica a los rastreadores web compatibles qué partes del sitio pueden o no acceder. Usa directivas del Protocolo de Exclusión de Robots como User-agent, Disallow y Allow. Bloquear secciones mediante robots.txt conserva el presupuesto de rastreo para páginas importantes, pero las páginas bloqueadas no pueden indexarse aunque tengan [[backlinks|backlinks]] — por eso el exceso de bloqueo es un error SEO común. El archivo también debe declarar la ubicación del [[sitemap-domain|sitemap XML]] para que los rastreadores lo descubran.
Ejemplo
Adding 'Disallow: /admin/' to robots.txt prevents Google from crawling internal admin pages, while 'Sitemap: https://example.com/sitemap.xml' advertises the sitemap location to all crawlers.