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. What can I do if Google Webmaster Tools doesn't recognize the robots.txt file?

    What can I do if Google Webmaster Tools doesn't recognize the robots.txt file?

    Technical SEO Issues
    7 4 396
    • 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.
    • DotCar
      DotCar last edited by

      I'm working on a recently hacked site for a client and and in trying to identify how exactly the hack is running I need to use the fetch as Google bot feature in GWT.

      I'd love to use this but it thinks the robots.txt is blocking it's acces but the only thing in the robots.txt file is a link to the sitemap.

      Unde the Blocked URLs section of the GWT it shows that the robots.txt was last downloaded yesterday but it's incorrect information.  Is there a way to force Google to look again?

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

        Looking in my log files, Google hits robots.txt just about every time it crawls our site.

        What are you trying to accomplish using fetch as Googlebot? Any chance CURL could do the job for you, or another tool that ignores robots.txt?

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

          If you have shell access on Linux you can use wget or GET or run lynx.

          If google is getting the wrong robots file then your web server must be sending out something other than what you think is the robots file.

          What happens if you do this in your browser:

          http://yourdomain.com/robots.txt

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

            File permission maybe? Change it to 777 and try it again

            wrttnwrd 1 Reply Last reply Reply Quote 0
            • wrttnwrd
              wrttnwrd @cbielich last edited by

              Eesh I don't recommend 777. 644 or, if you're going to change it right back, 755 at most.

              cbielich wrttnwrd 2 Replies Last reply Reply Quote 0
              • cbielich
                cbielich @wrttnwrd last edited by

                lol it's a robots text file. what are they going to do. Steal it? 🙂 I should have clarified do a 777 to make sure that is not your problem, then yes change the permission to be tighter 🙂

                1 Reply Last reply Reply Quote 0
                • wrttnwrd
                  wrttnwrd @wrttnwrd last edited by

                  No, but they might write to it, modify it, or do all sorts of other nasty stuff I've seen hackers do when they get a hold of any writeable file on a system.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Webmaster tools not showing links but Moz OSE is showing links. Why can't I see them in the Google Search Console
                    Eric_Rohrback
                    Eric_Rohrback
                    0
                    4
                    4.0k

                  • Will a Robots.txt 'disallow' of a directory, keep Google from seeing 301 redirects for pages/files within the directory?
                    DmitriiK
                    DmitriiK
                    0
                    4
                    408

                  • Why is Google Webmaster Tools showing 404 Page Not Found Errors for web pages that don't have anything to do with my site?
                    MonicaOConnor
                    MonicaOConnor
                    0
                    6
                    1.1k

                  • Why Doesn't All Structured Data Show in Google Webmaster?
                    BlueprintMarketing
                    BlueprintMarketing
                    0
                    3
                    1.4k

                  • When do you use 'Fetch as a Google'' on Google Webmaster?
                    MagicDude4Eva
                    MagicDude4Eva
                    1
                    13
                    7.5k

                  • Google insists robots.txt is blocking... but it isn't.
                    Christy-Correll
                    Christy-Correll
                    0
                    4
                    523

                  • Can't find mistake in robots.txt
                    Debdulal
                    Debdulal
                    0
                    3
                    338

                  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