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 question

    Robots.txt question

    Technical SEO Issues
    9 3 908
    • 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

      I want to block spiders from specific  specific part of website (say abc folder).

      In robots.txt, i have to write -

      User-agent: *

      Disallow: /abc/

      Shall i have to insert the last slash. or will this do

      User-agent: *

      Disallow: /abc

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

        Use the trailing slash.

        More about robots.txt can be learned at this site: http://www.robotstxt.org/

        The trailing slash indicates you are blocking a folder. Without the slash the object would be considered a file (i.e. page). I am not sure what the result would be if you tried to block a folder without the trailing slash. Even if it worked it would not be the correct code and may lead to various bots treating it differently.

        1 Reply Last reply Reply Quote 3
        • Entrusteddev
          Entrusteddev last edited by

          Hi Atul,

          Add the trailing slash.

          /abc could be a page url. Where as /abc/ is definitely a folder.

          http://www.robotstxt.org/robotstxt.html <-- Everything you ever wanted to know about robots.txt

          Regards

          Aran

          [EDIT: Damn it, Ryan submitted whilst I was answering! Must type faster 🙂 ]

          RyanKent 1 Reply Last reply Reply Quote 2
          • RyanKent
            RyanKent @Entrusteddev last edited by

            EGOL does it to me all the time!

            Entrusteddev seoug_2005 RyanKent 5 Replies Last reply Reply Quote 1
            • Entrusteddev
              Entrusteddev @RyanKent last edited by

              at least our answers agree, so no Atul is doubley sure of how to do it...

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

                Thanks for clearing my doubts.

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

                  I am the same person with the username seoug, but lost that account. So, had to start afresh !  I was a PR0 member, but accidently deleted that account ( it was not intentional ). And now , when i tried login in, i get a message that seoug name is already taken.

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

                    If you contact the help desk, they can probably help you get your old account back.

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

                      I will do so. And hope to get that back.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Easy Question: regarding no index meta tag vs robot.txt
                        Everett
                        Everett
                        0
                        4
                        213

                      • Robots.txt
                        MichaelC-15022
                        MichaelC-15022
                        0
                        7
                        1.0k

                      • A few misc Webmaster tools questions & Robots.txt etc
                        Dan-Lawrence
                        Dan-Lawrence
                        0
                        5
                        127

                      • Question about construction of our sitemap URL in robots.txt file
                        danatanseo
                        danatanseo
                        0
                        16
                        1.6k

                      • Robots.txt question
                        RobMay
                        RobMay
                        0
                        5
                        307

                      • Robots.txt question
                        KeriMorgret
                        KeriMorgret
                        0
                        7
                        791

                      • Robots.txt questions...
                        johnshearer
                        johnshearer
                        0
                        5
                        631

                      • Robots.txt file question? NEver seen this command before
                        omnea
                        omnea
                        0
                        7
                        772

                      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