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. Robots.txt

    Robots.txt

    Technical SEO Issues
    8 6 115
    • 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.
    • internetsalesdrive
      internetsalesdrive last edited by

      Hi All

      Having a robots.txt looking like the below will this stop Google crawling the site

      User-agent: *
      
      1 Reply Last reply Reply Quote 0
      • O2C
        O2C last edited by

        Wouldn't have thought so, you'd need to include this line of code as well:

        Disallow: /

        That will stop anything from crawling the site.

        internetsalesdrive 1 Reply Last reply Reply Quote 0
        • internetsalesdrive
          internetsalesdrive @O2C last edited by

          Hi this is what we thought but Google has not indexed any pages

          O2C BradsDeals 2 Replies Last reply Reply Quote 0
          • O2C
            O2C @internetsalesdrive last edited by

            From your original post I presumed you had not wanted Google to index your pages?

            If you want Google to index your pages it can take some time to happen naturally. You might want to submit a sitemap and ask Google to crawl your site within Webmaster Tools.

            Robots.txt is normally only used to block crawlers, so you will not need to put any code in there for it to allow Google to crawl.

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

              David's spot on. The User-agent: * mean this section applies to all robots. If you want Google (or any robot) to index your whole site, no need for a robots.txt file.

              1 Reply Last reply Reply Quote 1
              • BradsDeals
                BradsDeals @internetsalesdrive last edited by

                Hey, throw us a link to your robots.txt file and we can take a look, probably tell you pretty quickly. Without seeing it, we're all pretty much just taking guesses.

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

                  Via Search Console try to "Fetch As Google" and assuming that works without errors use the submit function.  You'll know very quickly whether you've got technical issues and get the page into the index very quickly.

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

                    If that is the only line in your robots.txt file then it really shouldn't accomplish anything. It's like saying, "Hey...all search engines...take note of this....oh forget it, there's nothing to see here."

                    I agree with Dave...try to fetch the page in Webmaster tools (Google Search Console). You can also use the Webmaster Tools robots.txt tester which often will tell you if there are issues.

                    • Hi this is what we thought but Google has not indexed any pages

                    How old is the site? It can take weeks for a new site to get indexed and then to get ranked as well. Do you see any pages on a site: search for your domain? (i.e. site:example.com). This might sound silly, but are you sure that there is no noindex tag on the page?

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    • Robots.txt
                      Dan-Lawrence
                      Dan-Lawrence
                      0
                      5
                      99

                    • Meta Robots Noindex and Robots.txt File
                      Devanur-Rafi
                      Devanur-Rafi
                      0
                      2
                      125

                    • Robots.txt
                      irvingw
                      irvingw
                      0
                      4
                      116

                    • The use of robots.txt
                      ICON_Malta
                      ICON_Malta
                      0
                      3
                      84

                    • Using Robots.txt
                      OlegKorneitchouk
                      OlegKorneitchouk
                      0
                      2
                      311

                    • Robots.txt
                      BailHotline
                      BailHotline
                      0
                      5
                      760

                    • Robots.txt
                      Ontarioseo
                      Ontarioseo
                      0
                      5
                      737

                    • Robots.txt
                      Entrusteddev
                      Entrusteddev
                      0
                      3
                      642

                    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