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 — текстовый файл в корне домена (например, example.com/robots.txt), сообщающий совместимым веб-краулерам, к каким частям сайта они могут или не могут обращаться. Файл использует директивы протокола исключения роботов: User-agent, Disallow и Allow. Блокировка разделов через robots.txt экономит краулинговый бюджет для важных страниц, однако заблокированные страницы не могут быть проиндексированы даже при наличии [[backlinks|обратных ссылок]] — из-за чего избыточная блокировка является распространённой ошибкой SEO. Файл также должен указывать расположение [[sitemap-domain|XML-карты сайта]] для обнаружения краулерами.
Пример
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.