What a robots.txt file controls
Before a well-behaved crawler fetches a page, it reads /robots.txt at the root of the host. The file says which paths each crawler may request. It controls crawling, not indexing: a blocked URL can still appear in Google if other sites link to it. To keep a page out of search results, let it be crawled and add a noindex tag instead.
Each subdomain needs its own file. https://blog.example.com/robots.txt is separate from https://example.com/robots.txt, and a file in a subfolder is ignored.
How to create a custom robots.txt file
Most sites need only a few lines: one group for all crawlers that blocks private or duplicate areas, and a Sitemap line. Add a named group only when one crawler needs different rules.
A common starting point for a blog or business site, including a custom robots.txt for Blogger or WordPress:
- User-agent: * with Disallow lines for admin, login, cart, checkout and internal search result pages.
- No rules that block CSS, JavaScript or image folders: Google needs them to render the page.
- A Sitemap line with the full URL of your sitemap or sitemap index.
- For Blogger, paste the result into Settings, Crawlers and indexing, Custom robots.txt. For WordPress, upload the file to the site root or paste it into your SEO plugin's robots.txt editor.
Robots.txt rules for AI crawlers
AI companies publish the user-agent names their crawlers use, so you can allow or block each one. GPTBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot (Perplexity) and CCBot (Common Crawl) each read their own group, and Google-Extended controls whether Google may use your content for Gemini.
Blocking a crawler is a trade-off. It keeps your pages out of that company's crawls, but it can also keep them out of the answers its assistant builds from crawled pages. Decide per bot, and check later which bots actually visit.
Por qué necesitas un creador de Robots.txt personalizado en 2026
Nuestra herramienta gratuita de generación de robots.txt te ayuda a crear archivos robots.txt adecuados para tu sitio web.
Los archivos robots.txt son esenciales para controlar cómo los motores de búsqueda rastrean tu sitio web y pueden
impactar significativamente en tu rendimiento SEO.
Cómo usar este creador de robots.txt
Para generar un archivo robots.txt, simplemente selecciona los bots que deseas permitir o bloquear.
Nuestro creador de robots txt genera el código para que lo copies y pegues.
Cómo generar archivos robots.txt para bloquear rastreadores de IA (GPTBot, ClaudeBot)
Con el auge de los agentes de IA, bloquear rastreadores de IA como GPTBot, ClaudeBot y OpenAI-SearchBot
es más importante que nunca para proteger tu propiedad intelectual. Nuestra herramienta te ayuda a generar
fácilmente directrices adaptadas a estos rastreadores de IA modernos.
Características principales
- Configuración sencilla: Simple interface to set up directives
- Plantillas preestablecidas: Quick templates for common use cases
- Directrices personalizadas: Add custom allow, disallow, and other directives
- Generación instantánea: Get your robots.txt file ready for upload
- Sin registro obligatorio: Use the tool immediately without signing up
Casos de uso comunes
- Permitir que todos los rastreadores accedan a tu sitio
- Bloquear el acceso a áreas de administración y contenido privado
- Controlar el rastreo de los endpoints de la API
- Establecer retrasos de rastreo para proteger el servidor
- Apuntar a tu mapa del sitio XML
Cómo usar tu archivo robots.txt generado
- Descarga el archivo robots.txt generado
- súbelo al directorio raíz de tu sitio web (ej., tudominio.com/robots.txt)
- Monitorea las estadísticas de rastreo de tu sitio
Mejores prácticas
- Mantén tu archivo robots.txt simple y claro
- Prueba tu archivo robots.txt antes de implementarlo
- No uses robots.txt para ocultar información confidencial
- Incluye la URL de tu sitemap en robots.txt
- Usa retrasos de rastreo adecuados para sitios grandes