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. On-Page / Site Optimization
    4. When You Add a Robots.txt file to a website to block certain URLs, do they disappear from Google's index?

    When You Add a Robots.txt file to a website to block certain URLs, do they disappear from Google's index?

    On-Page / Site Optimization
    3 3 205
    • 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.
    • williammarlow
      williammarlow last edited by

      I have seen several websites recently that have have far too many webpages indexed by Google, because for each blog post they publish, Google might index the following:

      • www.mywebsite.com/blog/title-of-post
      • www.mywebsite.com/blog/tag/tag1
      • www.mywebsite.com/blog/tag/tag2
      • www.mywebsite.com/blog/category/categoryA
      • etc

      My question is: if you add a robots.txt file that tells Google NOT to index pages in the "tag" and "category" folder, does that mean that the previously indexed pages will eventually disappear from Google's index?  Or does it just mean that newly created pages won't get added to the index?  Or does it mean nothing at all?  thanks for any insight!

      1 Reply Last reply Reply Quote 0
      • Chris.Menke
        Chris.Menke last edited by

        William, If the pages in question are linked to from external resources the robots.txt file will not prevent  the pages from appearing in the index. Per Moz's Robots.txt and Meta Robots best practices, "the robots.txt tells the engines not to crawl the given URL, but that they may keep the page in the index and display it in in results.

        To prevent all robots from indexing a page on your site, place the following meta tag into the section of your page:

        https://support.google.com/webmasters/answer/93710?hl=en

        1 Reply Last reply Reply Quote 4
        • Saijo.George
          Saijo.George last edited by

          Hi  William

          If the pages in question are

          1. already indexed by Google then if you block them via the robots.txt , they will show up in search result but the meta description will say something along the lines of

          A description for this result is not available because of this site's robots.txt – learn more.

          2) not indexed by Google for example on a new site , they don't follow it and the pages does not come up in search directly BUT if some external sites link to the pages then they can still come up in the SERP some time down the track.

          Your best bet to keep the page out of the public SERP index is the meta robots tag : http://www.robotstxt.org/meta.html

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Making Shopify URL's Simpler - Losing the words 'collection', 'product' and 'page' in a Shopify store URL. Any advice?
            0
            1
            171

          • Googlebot indexing URL's with ? queries in them. Is this Panda duplicate content?
            sparrowdog
            sparrowdog
            0
            6
            456

          • I want to place reviews from a review site also on my client's website, what's the right way to do that?
            JoostDerks
            JoostDerks
            0
            3
            92

          • I have more pages in my site map being blocked by the robot file than I have being allowed to be crawled. Is Google going to hate me for this?
            SVmedia
            SVmedia
            0
            3
            103

          • Number ID's in URL's
            simmo235
            simmo235
            0
            3
            174

          • How to properly remove pages and a category from Google's index
            VinceWicks
            VinceWicks
            0
            5
            324

          • Does a page's url have any weight in Google rankings?
            irvingw
            irvingw
            0
            9
            1.5k

          • What's the best practice for implementing a "content disclaimer" that doesn't block search robots?
            beeneeb
            beeneeb
            0
            2
            684

          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