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. Search Engine Trends
    4. Adding the link masking directory to robots.txt?

    Adding the link masking directory to robots.txt?

    Search Engine Trends
    3 3 243
    • 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.
    • irdeto
      irdeto last edited by

      Hey guys,

      Just want to know if you have any experience with this.

      Is it worthwhile blocking search engines from following the link masking directory.. (what i mean by this is the directory that holds the link redirectors to an affiliate site:

      example:
      mydomain.com/go/thislink

      goes to 
      amazon.com/affiliatelink

      I want to know if blocking the 'go' directory from getting crawled in robots.txt is a good idea or a bad idea?

      I am not using wordpress but rather a custom built php site where i need to manually decide on these things.

      i want to specifically know if this in any way violates guidelines for google. it doesn't change the custom experience because they know exactly where they will end up if they click on the link.

      any advice would be much appreciated.

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

        Hi!

        I know cases where you can hide the contents of a folder to Google to not affect the rest of the website.

        Note that you are facing a machine that knows how to crawl and index content.

        Also be sure to block with noindex nofollow meta tags and removing URLs from Google index if at some point you had not locked.

        Best regards!

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

          Iredeto,

          I do this on a few of my sites and it works out well. Saves on crawl budget, keeps google from accessing my affiliate links, and keeps any pagerank from passing through the links, which keeps me in-line with Google's webmaster policy on links.

          One thing to keep in mind is that Google may show those URLs in the search results with a message that they can't show the content because it has been blocked. If you want to keep this from happening you may have to remove that directory GWT using the URL Removal tool. If they get re-indexed in 90 days (or whatever the reset time frame is) you will have to do it again. Hopefully that won't be an issue once you get them all removed the first time and block the folder.

          Using rel = "nofollow" tags on the hyperlinks going to that directory wouldn't hurt either.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • When block bots using robots.txt vs meta tag "no index"?
            gertseoleverage
            gertseoleverage
            0
            5
            79

          • Need only tens of pages to be indexed out of hundreds: Robots.txt is Okay for Google to proceed with?
            GastonRiera
            GastonRiera
            0
            2
            24

          • Indexed, though blocked by robots.txt: Need to bother?
            GastonRiera
            GastonRiera
            1
            2
            121

          • Do back-links to non indexed sub-domains / sub-directories considered by Google as website backlinks and pass Pagerank to website?
            benesmartin
            benesmartin
            0
            2
            93

          • Adding non-important folders to disallow in robots.txt file
            vtmoz
            vtmoz
            0
            4
            162

          • Are links from directories still good practice?
            cschwartzel
            cschwartzel
            0
            5
            241

          • Google Unable to Access Robots.txt
            Modi
            Modi
            0
            4
            205

          • Is buying links in paid directories worth it?
            TellThemEverything
            TellThemEverything
            0
            3
            1.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