Note: This submit is particular to Google’s natural web-search. For Google’s different companies, please test with the suitable assist heart (e.g., for Google Shopping) or assist discussion board.

Even in as we speak’s “always-on” world, typically companies wish to take a break. There are instances when even their on-line presence must be paused. This weblog submit covers among the out there choices so that a web site’s search presence is not affected.

Option: Block cart performance

If a web site solely wants to dam customers from shopping for issues, the best strategy is to disable that particular performance. In most instances, procuring cart pages can both be blocked from crawling by means of the robots.txt file, or blocked from indexing with a robots meta tag. Since search engines like google and yahoo both will not see or index that content material, you possibly can talk this to customers in an applicable method. For instance, you could disable the hyperlink to the cart, add a related message, or show an informational web page as a substitute of the cart.

Option: Always present interstitial or pop-up

If you might want to block the entire web site from customers, be it with a “quickly unavailable” message, informational web page, or popup, the server ought to return a 503 HTTP outcome code (“Service Unavailable”). The 503 outcome code makes positive that Google does not index the non permanent content material that is proven to customers. Without the 503 outcome code, the interstitial could be listed as your web site’s content material.

Googlebot will retry pages that return 503 for as much as a few week, earlier than treating it as a everlasting error that can lead to these pages being dropped from the search outcomes. You also can embody a “Retry after” header to point how lengthy the positioning will probably be unavailable. Blocking a web site for longer than every week can have unfavorable results on the positioning’s search outcomes whatever the technique that you simply use.

Option: Switch entire web site off

Turning the server off utterly is an alternative choice. You may additionally do that when you’re bodily shifting your server to a special information heart. For this, have a short lived server out there to serve a 503 HTTP outcome code for all URLs (with an applicable informational web page for customers), and change your DNS to level to that server throughout that point.

  1. Set your DNS TTL to a low time (similar to 5 minutes) a number of days upfront.
  2. Change the DNS to the non permanent server’s IP deal with.
  3. Take your major server offline as soon as all requests go to the non permanent server.
  4. … your server is now offline …
  5. When prepared, carry your major server on-line once more.
  6. Switch DNS again to the principle server’s IP deal with.
  7. Change the DNS TTL again to regular.

We hope these choices cowl the widespread conditions the place you’d have to disable your web site quickly. If you may have any questions, be happy to drop by our webmaster assist boards!

PS If your corporation is lively domestically, ensure to replicate these closures within the opening hours to your native listings too!

This article sources info from Google Webmaster Central Blog