Qué es Robots.txt?
Definición Rápida
Robots.txt es un archivo de texto que informa a los bots de los motores de búsqueda sobre qué páginas o secciones del sitio no deben ser rastreadas ni indexadas.
The robots.txt file is one of the first things search engine bots check when visiting your website. Located at yoursite.com/robots.txt, it contains directives that tell crawlers which parts of your site they can access and which they should avoid. It uses a simple syntax with User-agent (which bot), Disallow (which paths to skip), and Allow (exceptions to disallow rules).
Common uses include blocking search engines from crawling admin areas, staging environments, duplicate content (like print versions of pages), internal search result pages, and private user account areas. You can also use it to point search engines to your sitemap file.
It's important to understand that robots.txt is a polite request, not a security measure. Well-behaved bots like Googlebot respect it, but malicious bots may ignore it entirely. Sensitive content should be protected with authentication, not robots.txt.
Misconfigured robots.txt files are one of the most common technical SEO mistakes. A single misplaced directive can accidentally block your entire site from being indexed, or prevent search engines from accessing CSS and JavaScript files they need to properly render your pages.
Por Qué es Importante
Robots.txt directly controls what search engines can and cannot see on your website. A well-configured file helps search engines focus their limited crawl budget on your most important pages. A misconfigured one can make your entire website invisible to Google.
For large websites, robots.txt is essential for crawl budget management — preventing bots from wasting time on low-value URLs means they spend more time indexing the pages that matter.
Ejemplos Reales
A company's new developer accidentally added Disallow: / to robots.txt, blocking Google from their entire site and causing traffic to drop 90% before anyone noticed
An e-commerce site blocked their faceted navigation URLs via robots.txt, saving thousands of pages of crawl budget for their actual product pages
A multi-site WordPress installation used robots.txt to prevent staging site content from being indexed by search engines
A SaaS platform blocked /app/ and /account/ paths to prevent internal dashboard pages from appearing in search results
Términos Relacionados
Technical SEO
El SEO técnico es el proceso de optimizar la infraestructura de tu sitio web para que los motores de búsqueda puedan rastrear, indexar y renderizar tus páginas de forma eficiente.
Crawl Budget
El crawl budget es el número de páginas que el bot de un motor de búsqueda rastreará en tu sitio web dentro de un período de tiempo determinado.
Sitemap
Un sitemap es un archivo o página web que lista todas las páginas de un sitio, ayudando a los motores de búsqueda a descubrir e indexar el contenido de forma más eficiente.
Indexing
La indexación es el proceso mediante el cual los motores de búsqueda analizan y almacenan información sobre páginas web en su base de datos, haciéndolas disponibles en los resultados.
¿Necesitas ayuda con robots.txt?
Nuestro equipo puede ayudarte a poner este concepto en práctica. Obtén una consulta gratuita para hablar sobre tu proyecto.