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.
Perché hai bisogno di un creatore di Robots.txt personalizzato nel 2026
Il nostro strumento gratuito per la generazione di robots.txt ti aiuta a creare file robots.txt corretti per il tuo sito web.
I file robots.txt sono essenziali per controllare il modo in cui i motori di ricerca eseguono la scansione del tuo sito e possono
influenzare in modo significativo le tue performance SEO.
Come usare questo generatore di robots.txt
Per generare un file robots.txt, seleziona semplicemente i bot che desideri consentire o bloccare.
Il nostro generatore di robots.txt creerà quindi il codice pronto da copiare e incollare.
Come generare file Robots.txt per bloccare gli scraper AI (GPTBot, ClaudeBot)
Con la diffusione degli agenti IA, bloccare scraper come GPTBot, ClaudeBot e OpenAI-SearchBot
è più importante che mai per proteggere la tua proprietà intellettuale. Il nostro strumento ti aiuta a
generare facilmente direttive su misura per questi crawler IA moderni.
Caratteristiche principali
- Configurazione semplice: Simple interface to set up directives
- Template predefiniti: Quick templates for common use cases
- Direttive personalizzate: Add custom allow, disallow, and other directives
- Generazione istantanea: Get your robots.txt file ready for upload
- Nessuna registrazione richiesta: Use the tool immediately without signing up
Casi d'uso comuni
- Consenti a tutti i crawler di accedere al tuo sito
- Blocca l'accesso alle aree di amministrazione e ai contenuti privati
- Controlla il crawling degli endpoint delle API
- Imposta i ritardi di scansione per proteggere il server
- Indica la posizione della tua sitemap XML
Come usare il tuo file robots.txt generato
- Scarica il file robots.txt generato
- Caricalo nella directory principale del tuo sito web (es. tuodominio.com/robots.txt)
- Monitora le statistiche di scansione del tuo sito
Migliori pratiche
- Mantieni il tuo file robots.txt semplice e chiaro
- Testa il tuo file robots.txt prima di metterlo online
- Non usare robots.txt per nascondere informazioni sensibili
- Includi l'URL della tua sitemap nel file robots.txt
- Usa ritardi di scansione appropriati per siti di grandi dimensioni