{"id":28508,"date":"2026-09-08T21:56:08","date_gmt":"2026-09-08T18:56:08","guid":{"rendered":"https:\/\/alienroad.com\/yandex-bilgi-bankasi\/using-robots-txt\/"},"modified":"2026-09-09T00:47:43","modified_gmt":"2026-09-08T21:47:43","slug":"using-robots-txt","status":"publish","type":"ar_ykb","link":"https:\/\/alienroad.com\/yandex-bilgi-bankasi\/using-robots-txt\/","title":{"rendered":"Using robots.txt"},"content":{"rendered":"<p><code>robots.txt<\/code> sets crawling parameters for search robots. Restricting sections reduces server load and speeds the site up. Yandex supports the Robots Exclusion Protocol with its own extensions.<\/p>\n<h2>The warning that comes first, and matters most<\/h2>\n<p><strong>Pages restricted in <code>robots.txt<\/code> can still appear in Yandex search.<\/strong> To remove a page from results you must use the <code>noindex<\/code> directive in the HTML or the HTTP header \u2014 and <em>you must not block that page in <code>robots.txt<\/code><\/em>, because a blocked page is never fetched and the <code>noindex<\/code> is never seen.<\/p>\n<p>This is the most consequential misunderstanding in technical SEO, and Yandex states it in the first paragraph. Blocking is about crawl budget; <code>noindex<\/code> is about search presence. Using the first to achieve the second guarantees the page stays indexed permanently.<\/p>\n<h2>File requirements<\/h2>\n<ul>\n<li>Maximum <strong>500 KB<\/strong>.<\/li>\n<li>A TXT file named <code>robots.txt<\/code>.<\/li>\n<li>In the <strong>root directory<\/strong>.<\/li>\n<li>Accessible to robots, returning <code>200 OK<\/code>.<\/li>\n<\/ul>\n<p><strong>If the file does not meet these requirements, the site is considered open for indexing.<\/strong> A malformed or unreachable file is not a safety net \u2014 it is an open door.<\/p>\n<h2>The redirect feature<\/h2>\n<p>Yandex accepts a redirect from one site&#8217;s <code>robots.txt<\/code> to another site&#8217;s, and applies the directives in the target file. That is specifically useful <strong>during a site move<\/strong>, where both domains must present consistent rules \u2014 and it is why the migration guidance insists the two files agree.<\/p>\n<h2>The supported directives<\/h2>\n<ul>\n<li><strong><code>User-agent<\/code><\/strong> \u2014 which robot the rules apply to.<\/li>\n<li><strong><code>Disallow<\/code><\/strong> \u2014 prohibit crawling of sections or pages.<\/li>\n<li><strong><code>Sitemap<\/code><\/strong> \u2014 the path to the sitemap, given in full with protocol.<\/li>\n<li><strong><code>Clean-param<\/code><\/strong> \u2014 a Yandex extension declaring parameters to ignore.<\/li>\n<\/ul>\n<h2>Verification<\/h2>\n<p>Test the file in the console&#8217;s robots.txt analyser with actual URLs, not just for syntax. A file that parses cleanly and blocks the wrong directory reports no errors at all.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>robots.txt sets crawling parameters for search robots. Restricting sections reduces server load and speeds the site up. Yandex supports the Robots Exclusion Protocol with its own extensions. The warning that comes first, and matters most Pages restricted in robots.txt can still appear in Yandex search. To remove a page from results you must use the [&hellip;]<\/p>\n","protected":false},"menu_order":84,"template":"","meta":{"footnotes":""},"ar_ykb_kategori":[765],"ar_ykb_etiket":[],"class_list":["post-28508","ar_ykb","type-ar_ykb","status-publish","has-post-thumbnail","hentry","ar_ykb_kategori-robots-txt"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_ykb\/28508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_ykb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_ykb"}],"version-history":[{"count":2,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_ykb\/28508\/revisions"}],"predecessor-version":[{"id":29114,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_ykb\/28508\/revisions\/29114"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/28890"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=28508"}],"wp:term":[{"taxonomy":"ar_ykb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_ykb_kategori?post=28508"},{"taxonomy":"ar_ykb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_ykb_etiket?post=28508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}