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. Technical SEO Issues
    4. Will password protecting my test sub-domain help keep the SEs from indexing it?

    Will password protecting my test sub-domain help keep the SEs from indexing it?

    Technical SEO Issues
    6 3 743
    • 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.
    • Doc_Sheldon
      Doc_Sheldon last edited by

      Hi, all. I'm working in an unfamiliar area here, so I hope someone can tell me if I'm out in left field.

      I am building a sub-domain called http://test.mysite.com, so that I can upload a client's still-under-construction site while working on it. When completed, it'll go up on his server, replacing his old site. Obviously, I want to ensure that it doesn't get indexed while it's on my test platform.

      A friend suggested that I password it with htaccess and htpasswd, since we can never be certain the SEs will obey site directives.

      My question is, what do you think would be the best (and hopefully, simplest) way to accomplish this?

      I'm no code-monkey, so "simple" is a big plus!

      Doc

      By the way, the platform will be Wordpress CMS.

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

        htaccess is a very simple way to protect the site from crawlers. If they can't access the pages they certainly can't index them.

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

          Thanks for the response, Matt. So you feel like that's a sure way? There seems to be some different opinions on whether or not all the SEs will respect that. I had always thought it was a solid way to do it,too. But some of the arguments I'm hearing have me in doubt, now.

          bloggidy 1 Reply Last reply Reply Quote 0
          • webseoservices
            webseoservices last edited by

            Also, a good way to go is the following:

            • tell search engines to go away in robots.txt
            • to insert a meta noindex tag
            • block in .htaccess as well

            Matt Cutts stated that the only 100% sure way is to password protect the folder

            1 Reply Last reply Reply Quote 1
            • Doc_Sheldon
              Doc_Sheldon last edited by

              Thanks, Darryl-

              Passwording the site seemed like a good option, although I wasn't aware that Matt had ever stated that. That being the case, it would certainly seem like the way to go. Thanks for the input!

              1 Reply Last reply Reply Quote 0
              • bloggidy
                bloggidy @Doc_Sheldon last edited by

                A different Matt but I have to/still agree that you need to password protect the site. This isn't just for a protection against crawlers but also anyone else who might be snooping around. Unless your client is okay with their work being released early into the wild you should password protect it.

                The good news is that many hosting companies have tools that will automagically generate the .htaccess files for your.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Blocking Test Pages Enmasse on Sub-domain
                  KeriMorgret
                  KeriMorgret
                  0
                  3
                  116

                • Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
                  CleverPhD
                  CleverPhD
                  0
                  4
                  245

                • How to prevent duplicat content issue and indexing sub domain [ CDN sub domain]?
                  Dr-Pete
                  Dr-Pete
                  0
                  3
                  328

                • Sub-domain or sub-folder for a blog?
                  TomRayner
                  TomRayner
                  0
                  2
                  133

                • Can I crawl a password protected domain with SEOmoz?
                  TommyTan
                  TommyTan
                  0
                  2
                  325

                • What is the best method to block a sub-domain, e.g. staging.domain.com/ from getting indexed?
                  KeriMorgret
                  KeriMorgret
                  0
                  13
                  6.3k

                • Sub domain versus sub directory
                  sprynewmedia
                  sprynewmedia
                  0
                  3
                  663

                • Using hyphenated sub-domains or non-hyphenated sub-domains? What is the question! I Any takers?
                  dcmike
                  dcmike
                  0
                  11
                  5.5k

                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