The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. White Hat / Black Hat SEO
    4. Correct way to block search bots momentarily... HTTP 503?

    Correct way to block search bots momentarily... HTTP 503?

    White Hat / Black Hat SEO
    5 3 1.8k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bjs2010
      bjs2010 last edited by

      Hi,

      What is the best way to block googlebot etc momentarily? For example, if I am implementing a programming update to our magento ecommerce platform and am unsure of the results and potential layout/ file changes that may impact SEO (Googlebot continuously spiders our site)

      How can you block the bots for like 30 mins or so?

      Thanks

      1 Reply Last reply Reply Quote 0
      • CleverPhD
        CleverPhD last edited by

        See the response here

        http://moz.com/community/q/temporarily-shut-down-a-site

        In short, the 503 is correct, you want to include a http header with a retry-after so it knows when to come back.  Also, key to set this up on your robots.txt file as Google will key off of the status of this file.  Once it sees that the robots.txt has a 503 it will wait until robots.txt shows a 200 again to then start crawling the entire site.  Note that you still need to show the 503 on all pages, regardless.

        Another option (that we use a lot on our larger sites) is that we have mirrored sites behind a load balancer.  We will tell the load balancer to send traffic to www1,2 while we work on www3,4.  When we have updated www3,4 we switch the load balancer to www3,4 and work on www1,2 and then when www1,2 are done we put them back into the mix on the load balancer.  Makes it seamless for the users and for Google.

        Cheers

        1 Reply Last reply Reply Quote 2
        • jesse-landry
          jesse-landry last edited by

          just disallow the root domain in your robots.txt file and when you're ready to let them back in edit your text file back to normal.

          jesse-landry CleverPhD 2 Replies Last reply Reply Quote 0
          • jesse-landry
            jesse-landry @jesse-landry last edited by

            Disregard mine, Clever was more... clever.. and beat me to it as well.

            1 Reply Last reply Reply Quote 0
            • CleverPhD
              CleverPhD @jesse-landry last edited by

              You can do that, but it is less specific on what you are actually doing with your server.  The 503 and retry after lets the spiders know exactly what you are doing (no confusion).  Thank you for the clever remark below.  🙂

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Hiding ad code from bots
                ANGLERTechnologiesUSAInc
                ANGLERTechnologiesUSAInc
                0
                2
                76

              • Block unwanted traffic
                HashtagHustler
                HashtagHustler
                0
                3
                278

              • Malicious bots
                BlueprintMarketing
                BlueprintMarketing
                0
                5
                1.1k

              • Do searchs bot understand SEF and non SEF url as the same ones ?
                Crocodesign
                Crocodesign
                0
                2
                108

              • Am I Syndicating Content Correctly?
                stever999
                stever999
                0
                7
                269

              • Search query for SEO Brisbane
                LynnPatchett
                LynnPatchett
                0
                4
                165

              • Indexing search results
                Dan-Petrovic
                Dan-Petrovic
                1
                2
                359

              • Is this SEO correct?
                paulbaguley
                paulbaguley
                0
                12
                647

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy