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. Web Design
    4. Needs clarification: How "Disallow: /" works?

    Needs clarification: How "Disallow: /" works?

    Web Design
    5 5 84
    • 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.
    • vtmoz
      vtmoz last edited by

      Hi all,

      I need clarification on this. I have noticed we have given "Disallow: /" in one of our sub-directory beside homepage. So, how it going to work now? Will this "Disallow: /" at sub-directory level going to disallow only that directory or entire website?

      If it is going to work for entire website; we have already given one more Disallow: / at homepage level blocking few folders. How it is going to handle with two Disallow: / commands?

      Thanks

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

        The directive that is literally "Disallow: /" will prevent crawling of all pages on your site, since technically, all page paths begin with a slash. Robots.txt files can only live at the root folder (subdirectory) of a site, so if you want to disallow a folder, you'll need to specify that with a directive like "Disallow: /folder-name/

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

          This post is deleted!
          1 Reply Last reply Reply Quote 1
          • anthonydnelson
            anthonydnelson last edited by

            If you have concerns, I strongly recommend using Google Search Console to test URL use cases against your existing robots.txt file and before you do potential edits.

            1 Reply Last reply Reply Quote 1
            • Christy-Correll
              Christy-Correll last edited by

              Hi vtmoz,

              You've received some great responses! Did any of them help answer your question? If so, please mark one or more as a "good answer." And if not, please let us know how we can help. Thanks!

              Christy

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Disallow: /sr/ and Disallow: /si/ - robots.txt
                McTaggart
                McTaggart
                0
                3
                74

              • Is The HREF Link "Title" Tag Needed on Mobile Websites?
                Stew222
                Stew222
                0
                5
                763

              • Links not visible in "Google cache text version" but visible in "Fetch as Google" in Webmaster tool
                vivekrathore
                vivekrathore
                0
                5
                341

              • Question #2: All of my INTERNAL links in OSE are being indexed from http://www.e.com/default.asp, and all my EXTERNAL links are linked to http://www.e.com/ am I getting a fraction of the link juice because of that?????
                RobertFisher
                RobertFisher
                0
                2
                157

              • How to determine if my site map needs work?
                danatanseo
                danatanseo
                0
                4
                290

              • Would the mobile-redirect "Panda" shield "Old Possum" work in reverse?
                0
                1
                588

              • Is it OK to 301 Redirect http://homepage.com to http://blog.homepage.com?
                SimonCullum
                SimonCullum
                0
                4
                601

              • How does the "first link" rule work with the "reasonable surfer patent" when it comes to the main navigation for a website?
                DanDeceuster
                DanDeceuster
                0
                10
                1.6k

              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