{"id":25260,"date":"2023-02-17T00:00:00","date_gmt":"2023-02-17T00:00:00","guid":{"rendered":"https:\/\/alienroad.com\/google-bilgi-bankasi\/dont-use-403s-or-404s-for-rate-limiting\/"},"modified":"2023-02-17T00:00:00","modified_gmt":"2023-02-17T00:00:00","slug":"dont-use-403s-or-404s-for-rate-limiting","status":"publish","type":"ar_kb","link":"https:\/\/alienroad.com\/google-bilgi-bankasi\/dont-use-403s-or-404s-for-rate-limiting\/","title":{"rendered":"Don&#8217;t use 403s or 404s for rate limiting"},"content":{"rendered":"<p class=\"gargardate\">Friday, February 17, 2023<\/p>\n<p>\n  Over the last few months we noticed an uptick in website owners and some content delivery networks<br \/>\n  (CDNs) attempting to use <code>404<\/code> and other <code>4xx<\/code> client errors (but not<br \/>\n  <code>429<\/code>) to attempt to reduce Googlebot&#8217;s crawl rate.\n<\/p>\n<p>\n  The short version of this blog post is: please don&#8217;t do that; we have documentation about<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/reduce-the-google-crawl-rate\/\">how to reduce Googlebot&#8217;s crawl rate<\/a>.<br \/>\n  Read that instead and learn how to effectively manage Googlebot&#8217;s crawl rate.\n<\/p>\n<h2 id=\"back-to-basics:-4xx-errors-are-for-client-errors\" tabindex=\"-1\">Back to basics: <code>4xx<\/code> errors are for client errors<\/h2>\n<p>\n  The <code>4xx<\/code> errors servers return to clients are a signal from the server that the<br \/>\n  client&#8217;s request was wrong in some sense. Most of the errors in this category are pretty benign:<br \/>\n  &#8220;not found&#8221; errors, &#8220;forbidden&#8221;, &#8220;I&#8217;m a teapot&#8221; (yes, that&#8217;s a thing). They don&#8217;t suggest anything<br \/>\n  wrong going on with the server itself.\n<\/p>\n<p>\n  The one exception is <code>429<\/code>, which stands for &#8220;too many requests&#8221;. This error is a clear<br \/>\n  signal to any well-behaved robot, including our beloved Googlebot, that it needs to slow down<br \/>\n  because it&#8217;s overloading the server.\n<\/p>\n<h2 id=\"why-4xx-errors-are-bad-for-rate-limiting-googlebot-except-429\" tabindex=\"-1\">Why <code>4xx<\/code> errors are bad for rate limiting Googlebot (except <code>429<\/code>)<\/h2>\n<p>\n  Client errors are just that: client errors. They generally don&#8217;t suggest an error with the server:<br \/>\n  not that it&#8217;s overloaded, not that it&#8217;s encountered a critical error and is unable to respond<br \/>\n  to the request. They simply mean that the client&#8217;s request was bad in some way. There&#8217;s no<br \/>\n  sensible way to equate for example a <code>404<\/code> error to the server being overloaded.<br \/>\n  Imagine if that was the case: you get an influx of <code>404<\/code> errors from your friend accidentally<br \/>\n  linking to the wrong pages on your site, and in turn Googlebot slows down with crawling. That<br \/>\n  would be pretty bad. Same goes for <code>403<\/code>, <code>410<\/code>, <code>418<\/code>.\n<\/p>\n<p>\n  And again, the big exception is the <code>429<\/code> status code, which translates to &#8220;too many<br \/>\n  requests&#8221;.\n<\/p>\n<h2 id=\"what-rate-limiting-with-4xx-does-to-googlebot\" tabindex=\"-1\">What rate limiting with <code>4xx<\/code> does to Googlebot<\/h2>\n<p>\n  Alle <code>4xx<\/code> HTTP status codes (again, except <code>429<\/code>) will cause your content<br \/>\n  to be removed from Google Search. What&#8217;s worse, if you also serve your robots.txt file with a<br \/>\n  <code>4xx<\/code> HTTP status code, it will be treated as if it didn&#8217;t exist. If you had a rule<br \/>\n  there that disallowed crawling your dirty laundry, now Googlebot also knows about it; not great<br \/>\n  for either party involved.\n<\/p>\n<h2 id=\"how-to-reduce-googlebots-crawl-rate,-the-right-way\" tabindex=\"-1\">How to reduce Googlebot&#8217;s crawl rate, the right way<\/h2>\n<p>\n  We have extensive documentation about<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/reduce-the-google-crawl-rate\/\">how to reduce Googlebot&#8217;s crawl rate<\/a><br \/>\n  and also about<br \/>\n  <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/how-http-status-codes-affect-googles-crawlers\/\">how Googlebot (and Search indexing) handles the different HTTP status codes<\/a>;<br \/>\n  be sure to check them  out. In short, you want to do either of these things:\n<\/p>\n<ul>\n<li>\n    <a href=\"https:\/\/alienroad.com\/google-bilgi-bankasi\/reduce-the-google-crawl-rate\/#reduce-with-search-console\">Use Search Console to temporarily reduce crawl rate<\/a>.\n  <\/li>\n<li>\n    Return a <code>500<\/code>, <code>503<\/code>, or <code>429<\/code> HTTP status code to Googlebot<br \/>\n    when it&#8217;s crawling too fast.\n  <\/li>\n<\/ul>\n<p>\n  If you need more tips or clarifications, catch us on<br \/>\n  <a href=\"https:\/\/twitter.com\/googlesearchc\" class=\"external-link\">Twitter<\/a> or post in<br \/>\n  <a href=\"https:\/\/support.google.com\/webmasters\/community\" class=\"external-link\">our help forums<\/a>.\n<\/p>\n<p class=\"byline-author\">\n  Posted by <a href=\"https:\/\/garyillyes.com\/+\" class=\"external-link\">Gary Illyes<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Friday, February 17, 2023 Over the last few months we noticed an uptick in website owners and some content delivery networks (CDNs) attempting to use 404 and other 4xx client errors (but not 429) to attempt to reduce Googlebot&#8217;s crawl rate. The short version of this blog post is: please don&#8217;t do that; we have [&hellip;]<\/p>\n","protected":false},"menu_order":80595,"template":"","meta":{"footnotes":""},"ar_kb_kategori":[665],"ar_kb_etiket":[],"class_list":["post-25260","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\/25260","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\/25260\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media\/27381"}],"wp:attachment":[{"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/media?parent=25260"}],"wp:term":[{"taxonomy":"ar_kb_kategori","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_kategori?post=25260"},{"taxonomy":"ar_kb_etiket","embeddable":true,"href":"https:\/\/alienroad.com\/wp-json\/wp\/v2\/ar_kb_etiket?post=25260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}