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. Google Indexing Development Site Despite Robots.txt Block

    Google Indexing Development Site Despite Robots.txt Block

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

      Hi,

      A development site that has been set-up has the following Robots.txt file:

      User-agent: *

      Disallow: /

      In an attempt to block Google indexing the site, however this isn't the case and the development site has since been indexed.

      Any clues why this is or what I could do to resolve it?

      Thanks!

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

        You would need to block access via htaccess rather than robots file as the robots.txt is only advisory

        If you are using wordpress I use this simple plugin JF3 Maintenance Redirect

        CarlWint 1 Reply Last reply Reply Quote 0
        • CarlWint
          CarlWint @DeanAndrews last edited by

          Its my understanding that htaccess is PHP based and as we code in .net we don't have a htaccess file.

          Do you know of this this happening before because its not something that I've heard of.

          DeanAndrews 1 Reply Last reply Reply Quote 0
          • Travis_Bailey
            Travis_Bailey last edited by

            It's generally best to noindex/nofollow using the meta robots tag in the header. If it's not too much of a stretch for you, you can also password protect the test site. The over-so-lovely and charming Googles will still display results blocked by robots.txt - though it won't generally cache the content. If you would like, you can hookup the test site with Webmaster Tools and remove the URL(s) from the index.

            More on all this here and here.

            CarlWint 1 Reply Last reply Reply Quote 0
            • CarlWint
              CarlWint @Travis_Bailey last edited by

              Thanks for your help! Much appreciated

              1 Reply Last reply Reply Quote 0
              • DeanAndrews
                DeanAndrews @CarlWint last edited by

                Hi so I'm assuming your on IIS (I'm no expert on ISS I think you will need to configure the web.config) and I'm just going to step back now and get my coat as I only have experience with Apache

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Should you use robots.txt for pages within your site which do not have high quality content or are not contributing a great deal so when Google crawls your site the best performing content has a higher chance of being indexed?
                  Jacksons_Fencing
                  Jacksons_Fencing
                  0
                  5
                  44

                • Google Webmaster Tools is saying "Sitemap contains urls which are blocked by robots.txt" after Https move...
                  vetofunk
                  vetofunk
                  0
                  5
                  11.2k

                • Google indexing despite robots.txt block
                  john4math
                  john4math
                  0
                  13
                  654

                • Accidentally blocked whole site with robots.txt and struggling to regain rankings.
                  SebastianCowie
                  SebastianCowie
                  0
                  5
                  998

                • Site blocked by robots.txt and 301 redirected still in SERPs
                  OlegKorneitchouk
                  OlegKorneitchouk
                  0
                  2
                  621

                • I accidentally blocked Google with Robots.txt. What next?
                  SebastianCowie
                  SebastianCowie
                  0
                  7
                  2.1k

                • Google (GWT) says my homepage and posts are blocked by Robots.txt
                  stubby
                  stubby
                  0
                  8
                  930

                • Site not being Indexed that fast anymore, Is something wrong with this Robots.txt
                  oznappies
                  oznappies
                  0
                  4
                  828

                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