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 é um arquivo de texto simples colocado na raiz de um domínio (por exemplo, example.com/robots.txt) que informa aos rastreadores web compatíveis quais partes do site podem ou não acessar. Usa diretivas do Protocolo de Exclusão de Robôs como User-agent, Disallow e Allow. Bloquear seções via robots.txt economiza orçamento de rastreamento para páginas importantes, mas páginas bloqueadas não podem ser indexadas mesmo que tenham [[backlinks|backlinks]] — tornando o bloqueio excessivo um erro comum de SEO. O arquivo também deve declarar a localização do [[sitemap-domain|sitemap XML]] para descoberta dos rastreadores.
Exemplo
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.