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. On-Page / Site Optimization
    4. Robots.txt file

    Robots.txt file

    On-Page / Site Optimization
    3 3 652
    • 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.
    • seoug_2005
      seoug_2005 last edited by

      Does it serve any purpose if we omit robots.txt file ?  I wonder if spider has to read all the pages, why do we insert robots.txt file ?

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

        A good source to learn about the robots.txt file is here: http://www.robotstxt.org/

        The robots.txt file is completely optional. I don't use the file at all on small sites.

        The file offers a means to block crawlers which choose to honor the file's instructions from crawling all or part of a site. It also provides the location of a sitemap.

        To that end, sitemaps are completely unnecessary for SEO assuming your site has proper navigation. Even if you choose to use a sitemap, you can offer the location via WMT rather then the robots.txt file.

        With respect to blocking areas of your site, the primary use would be for CMS, forums, ecommerce or other sites where the software was limited and does not allow the site owner to use noindex on all pages.

        As a rule, robots.txt should simply never be used except as a means of last resort. In my experience the file is overused by site owners and SEOs. One exception where I use a robots.txt is during a site's development when I do not wish the site to be crawled at all.

        1 Reply Last reply Reply Quote 2
        • Greenman
          Greenman last edited by

          As Ryan said, robots.txt file is very useful when you wanna block (disallow) some pages. Indeed, if you don't want that spider crawls your page you must use robots.txt (noindex tags will let bot crawls, but not index, your page). I have got a small website but i dropped robots.txt in my folder. Maybe write just Allow: / could be useless, but you can say: "I respect protocols"

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Two Robots.txt files
            TrulyTravel
            TrulyTravel
            0
            5
            514

          • Question about robots.txt
            spencerhjustice
            spencerhjustice
            0
            3
            125

          • Should I be disallowing my forum in the robots.txt file?
            waleedkhalid
            waleedkhalid
            0
            5
            287

          • How to exclude URL filter searches in robots.txt
            Everett
            Everett
            0
            9
            8.6k

          • When You Add a Robots.txt file to a website to block certain URLs, do they disappear from Google's index?
            Saijo.George
            Saijo.George
            0
            3
            205

          • Wordpress categories tags and robots.txt
            sfmatthews
            sfmatthews
            0
            4
            714

          • Robots.txt: excluding URL
            john4math
            john4math
            0
            2
            821

          • How do you block development servers with robots.txt?
            JustinTaylor88
            JustinTaylor88
            0
            7
            5.2k

          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