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. Invisible robots.txt?

    Invisible robots.txt?

    Technical SEO Issues
    7 4 3.1k
    • 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.
    • joshcanhelp
      joshcanhelp last edited by

      So here's a weird one...

      Client comes to me for some simple changes, turns out there are some major issues with the site, one of which is that none of the correct content pages are showing up in Google, just ancillary (outdated) ones. Looks like an issue because even the main homepage isn't showing up with a "site:domain.com"

      So, I add to Webmaster Tools and, after an hour or so, I get the red bar of doom, "robots.txt is blocking important pages." I check it out in Webmasters and, sure enough, it's a "User agent: * Disallow /" ACK!

      But wait... there's no robots.txt to be found on the server. I can go to domain.com/robots.txt and see it but nothing via FTP. I upload a new one and, thankfully, that is now showing but I've never seen that before.

      Question is: can a robots.txt file be stored in a way that can't be seen?

      Thanks!

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

        I should mention that this is a WordPress site and, with that, I may have answered my own question. Perhaps WordPress generates a robots.txt dynamically when the setting is active at Settings > Privacy?

        Superb 1 Reply Last reply Reply Quote 1
        • Superb
          Superb @joshcanhelp last edited by

          This is interesting. I am currently working on the robots.txt and testing it for different purposes. I also thought to do some test with wordpress websites as well so thanks for the update I’ll keep that in mind before actually testing different stuff.

          Thanks!

          joshcanhelp 1 Reply Last reply Reply Quote 0
          • joshcanhelp
            joshcanhelp @Superb last edited by

            Just make sure you don't set that Privacy setting in a live directory. It takes weeks/months to fully recover.

            1 Reply Last reply Reply Quote 0
            • Desiree-CP
              Desiree-CP last edited by

              Yes, you probably answered your own question.  In WordPress, there are two different settings under Settings > Privacy:

              1. I would like my site visible to everyone, including search engines and archivers.

              2. I would like to block search engines, but allow normal visitors

              If option #2 was selected, WordPress doesn't create a robots.txt file for you but instead it automatically generates a tag on every single page.

              I hope that helps!

              joshcanhelp 1 Reply Last reply Reply Quote 0
              • joshcanhelp
                joshcanhelp @Desiree-CP last edited by

                I'm seeing the meta tag that's added for the first option:

                <meta name="robots" content="index, follow" />

                ... but I could actually access a file at domain.com/robots.txt that had the content mentioned above. When I logged in via FTP, it wasn't there. I added an actual file there with the correct information and reloaded it to make sure it was showing the correct information.

                I tested it on my local install and I'm not seeing a robots file being generated.

                Very odd!

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

                  Hi Josh

                  Did you ever find out how this was happening? 
                  I've got the same issue with a wordpress site.. no robots.txt visible in FTP but it is accessible in a browser to view.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Robots.txt
                    MichaelC-15022
                    MichaelC-15022
                    0
                    7
                    1.0k

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

                  • Robots.txt checker
                    askshopper
                    askshopper
                    0
                    3
                    2.1k

                  • Robots.txt
                    BailHotline
                    BailHotline
                    0
                    5
                    760

                  • Robots txt
                    LadyApollo
                    LadyApollo
                    0
                    3
                    427

                  • Robots.txt
                    Entrusteddev
                    Entrusteddev
                    0
                    3
                    642

                  • Robots.txt and robots meta
                    TheEspresseo
                    TheEspresseo
                    0
                    5
                    1.1k

                  • Robots.txt
                    Tom-Anthony
                    Tom-Anthony
                    0
                    4
                    1.1k

                  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