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
              • Items 30 - 50", however this is not accurate. Articles/Pages/Products counts are not close to this, products are 100+, so are the articles. We would want to either hide this or correct this.
                RossKernez
                RossKernez
                0
                2
                27

              • Responsive Site has "Not Found" Errors for mobile/ and m/ in Google Search Console
                JustinTaylor88
                JustinTaylor88
                1
                5
                1.5k

              • Do I need to 301 redirect www.domain.com/index.html to www.domain.com/ ?
                Yannis_s
                Yannis_s
                0
                5
                5.0k

              • Redirects Not Working / Issue with Duplicate Page Titles
                HireSpace
                HireSpace
                0
                4
                150

              • Http://www.domain.com/services/city or http://www.domain.com/city
                Landforce
                Landforce
                1
                5
                163

              • Does it do harm if you add a rel="canonical" tag on a page that doesn't need it?
                MattAntonino
                MattAntonino
                0
                5
                294

              • Too Many On Page Links, rel="nofollow" and rel="external"
                Dr-Pete
                Dr-Pete
                0
                8
                2.0k

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

              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