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. Intermediate & Advanced SEO
    4. What should I block with a robots.txt file?

    What should I block with a robots.txt file?

    Intermediate & Advanced SEO
    3 2 298
    • 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.
    • Travis-W
      Travis-W last edited by

      Hi Mozzers,

      We're having a hard time getting our site indexed, and I have a feeling my dev team may be blocking too much of our site via our robots.txt file.

      They say they have disallowed php and smarty files.

      Is there any harm in allowing these pages?

      Thanks!

      1 Reply Last reply Reply Quote 1
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        I'm not too hot on Smarty, but doesn't this generate the HTML templates?

        However, this shouldn't cause a problem because the files that are being generated are html so as long as they have done this right, it should be fine.

        Do you want to ping me the robots file or URL over and I will have a look for you?

        Andy

        Travis-W 1 Reply Last reply Reply Quote 0
        • Travis-W
          Travis-W @Andy.Drinkwater last edited by

          Hi Andy, here you go: www.consumerbase.com/robots.txt

          I know we want to block the .html files, but I am unsure about the other folders.

          I guess I would need to know for certain from my programmers that none of our content is in there?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Large robots.txt file
            ThomasHarvey
            ThomasHarvey
            0
            2
            513

          • Blocking out specific URLs with robots.txt
            Modi
            Modi
            0
            3
            133

          • Why are these results being showed as blocked by robots.txt?
            eyepaq
            eyepaq
            0
            9
            203

          • Issue with Robots.txt file blocking meta description
            ThompsonPaul
            ThompsonPaul
            0
            9
            3.8k

          • Files blocked in robot.txt and seo
            john4math
            john4math
            0
            4
            344

          • Robots.txt file - How to block thosands of pages when you don't have a folder path
            Klarke
            Klarke
            0
            4
            264

          • Block an entire subdomain with robots.txt?
            kylesuss
            kylesuss
            1
            16
            102.1k

          • Blocking Dynamic URLs with Robots.txt
            TaitLarson
            TaitLarson
            1
            4
            5.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