{"id":25345,"date":"2025-03-07T00:00:00","date_gmt":"2025-03-07T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/robots-refresher-robots-txt-a-flexible-way-to-control-how-machines-explore-your-website\/"},"modified":"2025-03-07T00:00:00","modified_gmt":"2025-03-07T00:00:00","slug":"robots-refresher-robots-txt-a-flexible-way-to-control-how-machines-explore-your-website","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/robots-refresher-robots-txt-a-flexible-way-to-control-how-machines-explore-your-website\/","title":{"rendered":"Robots Refresher: robots.txt \u2014 a flexible way to control how machines explore your website"},"content":{"rendered":"<p class=\"gargardate\">Friday, March 7, 2025<\/p>\n<p>\n  A long-standing tool for website owners, robots.txt has been in active use for over 30 years and<br \/>\n  is broadly supported by crawler operators (such as tools for site owners, services, and search<br \/>\n  engines). In this edition of the <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/robots-refresher-introducing-a-new-series\/\">robots refresher series<\/a>,<br \/>\n  we&#8217;ll take a closer look at robots.txt as a flexible way to tell robots what you want them to do<br \/>\n  (or not do) on your website.\n<\/p>\n<h2 id=\"getting-started-with-robots.txt\" tabindex=\"-1\">Getting started with robots.txt<\/h2>\n<p>\n  The way these files work is simple: you make a text file called &#8220;robots.txt&#8221; and then upload it to<br \/>\n  your website&mdash;and if you&#8217;re using a content management system (CMS), it&#8217;s likely even easier. You<br \/>\n  can leave your robots.txt file empty (or not have one at all) if your whole<br \/>\n  site may be crawled, or you can add rules to manage crawling. For example, to tell all bots (also<br \/>\n  known as crawlers, robots, spiders) to stay out of your &#8220;add to cart&#8221; page, you could write this<br \/>\n  in your robots.txt file:\n<\/p>\n<div><\/div>\n<h2 id=\"more-specific-things-you-can-do-with-robots.txt\" tabindex=\"-1\">More specific things you can do with robots.txt<\/h2>\n<p>\n  robots.txt is the Swiss Army knife of expressing what you want different robots to do or<br \/>\n  not do on your website: it can be just a few lines, or it can be complex with more elaborate<br \/>\n  rules targeting very specific URL patterns. You can use a robots.txt file for solving technical<br \/>\n  issues (such as <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/pagination-incremental-page-loading-and-their-impact-on-google-search\/#avoid-indexing-variations\">unnecessary paginated pages<\/a>),<br \/>\n  or for editorial or personal reasons (such as just not wanting certain things crawled). For<br \/>\n  example, you could:\n<\/p>\n<table class=\"fixed\">\n<colgroup>\n<col width=\"50%\">\n<col>\n  <\/colgroup>\n<tr>\n<td>\n<p><b>Inform multiple bots (but not all) about the same rule<\/b><\/p>\n<p>\n        This group tells both <code>examplebot<\/code> and <code>otherbot<\/code> to stay away from<br \/>\n        the <code>\/search<\/code> path.\n      <\/p>\n<\/td>\n<td><span><\/span><\/p>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>Tell one bot to avoid paths that contain a specific piece of text<\/b><\/p>\n<p>\n        For example, you could tell <code>documentsbot<\/code> not to crawl any file that contains<br \/>\n         &#8220;.pdf&#8221; in its name.\n      <\/p>\n<\/td>\n<td><span><\/span><\/p>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>Tell a bot it may crawl your blog, but not the drafts<\/b><\/p>\n<\/td>\n<td><span><\/span><\/p>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>Block a crawler from part of your website, while allowing other crawlers to access your site<\/b><\/p>\n<p>\n        This robots.txt file disallows the mentioned <code>aicorp-trainer-bot<\/code> from accessing<br \/>\n        anything other than the home page, while allowing other crawlers (such as search engines) to<br \/>\n        access the site.\n      <\/p>\n<\/td>\n<td><span><\/span><\/p>\n<div><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>Leave a comment for your future self<\/b><\/p>\n<p>\n        You can start a line with <code>#<\/code> to remind yourself about why you put a certain rule there.\n      <\/p>\n<\/td>\n<td>\n      <span><\/span><\/p>\n<div><\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p>\n  For even more, you can check out our <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/how-to-write-and-submit-a-robots-txt-file\/#useful-robots.txt-rules\">list of useful robots.txt rules<\/a>.\n<\/p>\n<h2 id=\"making-changes-to-your-robots.txt-file-practically\" tabindex=\"-1\">Making changes to your robots.txt file (practically) <\/h2>\n<p>\n  The <a href=\"https:\/\/datatracker.ietf.org\/doc\/rfc9309\/\" class=\"external-link\">Robots Exclusion Protocol (REP)<\/a> works<br \/>\n  by putting together rules (&#8220;<span>allow<\/span>&#8221; or &#8220;<span>disallow<\/span>&#8220;)<br \/>\n  and specifying which robots these rules apply to. You don&#8217;t need to learn programming or fiddle<br \/>\n  with tools; you can just put these rules in a text file and upload it to your website.\n<\/p>\n<p>\n  For most websites, it&#8217;s even simpler than that! If you&#8217;re using a CMS, it usually has<br \/>\n  something already built in to help you change your robots.txt file. For example, some CMSes let<br \/>\n  you customize your robots.txt file using checkboxes or with a simple form, and many have plugins<br \/>\n  that help you set up and write rules for your robots.txt file. To check what&#8217;s possible within<br \/>\n  your CMS, you can do a search for the name of your CMS +&#8221;edit robots.txt file&#8221;.\n<\/p>\n<p>\n  Once you&#8217;ve got things set up, you can also test to make sure your file is set up how you<br \/>\n  intended. There are many testing tools built by the web community to help with this, such as<br \/>\n  <a href=\"https:\/\/tamethebots.com\/tools\/robotstxt-checker\" class=\"external-link\">TametheBot&#8217;s robots.txt testing tool<\/a><br \/>\n  and this <a href=\"https:\/\/www.realrobotstxt.com\/\" class=\"external-link\">robots.txt parser<\/a> that<br \/>\n  are using the <a href=\"https:\/\/github.com\/google\/robotstxt\" class=\"external-link\">open-source robots.txt parser library<\/a>.\n<\/p>\n<p>\n  If you have any questions about robots.txt, you can find us on <a href=\"https:\/\/www.linkedin.com\/showcase\/googlesearchcentral\/\" class=\"external-link\">LinkedIn<\/a><br \/>\n  or chat with like-minded experts in <a href=\"https:\/\/support.google.com\/webmasters\/community\" class=\"external-link\">our community forums<\/a>.\n<\/p>\n<p class=\"byline-author\">Posted by <a href=\"https:\/\/developers.google.com\/search\/blog\/authors\/martin-splitt\">Martin Splitt<\/a><br \/>\n  and <a href=\"https:\/\/developers.google.com\/search\/blog\/authors\/john-mueller\">John Mueller<\/a>,<br \/>\n  Search relations team<\/p>\n<hr class=\"full-width\">\n<h2 id=\"check-out-the-rest-of-the-robots-refresher-series:\" tabindex=\"-1\">Check out the rest of the Robots Refresher series:<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Friday, March 7, 2025 A long-standing tool for website owners, robots.txt has been in active use for over 30 years and is broadly supported by crawler operators (such as tools for site owners, services, and search engines). In this edition of the robots refresher series, we&#8217;ll take a closer look at robots.txt as a flexible [&hellip;]<\/p>\n","protected":false},"menu_order":79846,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-25345","ar_kb","type-ar_kb","status-publish","has-post-thumbnail","hentry","ar_kb_kategori-blog"],"_links":{"self":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/25345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb"}],"about":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/types\/ar_kb"}],"version-history":[{"count":0,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb\/25345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/27465"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=25345"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=25345"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=25345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}