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. Correct use for Robots.txt

    Correct use for Robots.txt

    Web Design
    5 3 1.0k
    • 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.
    • EricVallee34
      EricVallee34 last edited by

      I'm in the process of building a website and am experimenting with some new pages.  I don't want search engines to  begin crawling the site yet.  I would like to add the Robot.txt on my pages that I don't want them to crawl.  If I do this, can I remove it later and get them to crawl those pages?

      1 Reply Last reply Reply Quote 0
      • krissy-cca
        krissy-cca last edited by

        Hey Eric,

        If you want to create and work on pages but you don't want them indexed you can add the following to the page in the section (the pages will still be crawled):

        If you want NONE of your pages to be crawled (I.E the whole website) you can add the following to your robots.txt file:

        User-agent: *
        Disallow: /
        
        
        EricVallee34 1 Reply Last reply Reply Quote 1
        • EricVallee34
          EricVallee34 @krissy-cca last edited by

          Damian,

          Thanks for your answer, that helps.  If I add either one of the above items to my web page, and then remove it at a later date, will the search engines crawl and rank my site (at sometime after they are removed)?  In other words, and I know this sounds stupid, but does a search engine see a Robots.txt file and never visit it again?

          CPU EricVallee34 2 Replies Last reply Reply Quote 0
          • CPU
            CPU @EricVallee34 last edited by

            Hi Eric

            The guidance above means that Google when it looks to crawl your site won't its not a message to Google telling it never to come back.

            Once everything is sorted, remove whichever approach you took to block the search engines and supply a sitemap to Google via the Webmaster tools. Your site should be crawled in no time after that.

            Hope this helps.

            1 Reply Last reply Reply Quote 2
            • EricVallee34
              EricVallee34 @EricVallee34 last edited by

              Lewis,

              Thank you for the clarification!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Block parent folder in robot.txt, but not children
                Martijn_Scheijbeler
                Martijn_Scheijbeler
                0
                3
                547

              • Robots.txt being blocked
                SOM24
                SOM24
                0
                9
                1.4k

              • How to command Robots.txt to this:
                Chenzo
                Chenzo
                0
                7
                151

              • Were our URLs setup correctly?
                KempRugeLawGroup
                KempRugeLawGroup
                1
                6
                121

              • Using a lightbox
                Jon-C
                Jon-C
                0
                3
                248

              • Is anyone using Humans.txt in your websites? What do you think?
                Asher
                Asher
                1
                2
                627

              • Losing indexed pages on Bing & Google - robots.txt
                Tustep
                Tustep
                0
                5
                1.6k

              • Hey on some of my report cards its saying im not using rel canonical correctly how do i change this on my site?
                ClearVisionDesign
                ClearVisionDesign
                0
                8
                263

              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