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. Blocking pages from Moz and Alexa robots

    Blocking pages from Moz and Alexa robots

    Technical SEO Issues
    3 3 97
    • 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.
    • Pushm
      Pushm last edited by

      Hello,

      We want to block all pages in this directory from Moz and Alexa robots - /slabinventory/search/

      Here is an example page - https://www.msisurfaces.com/slabinventory/search/granite/giallo-fiesta/los-angeles-slabs/msi/

      Let me know if this is a valid disallow for what I'm trying to.

      User-agent: ia_archiver
      Disallow: /slabinventory/search/*

      User-agent: rogerbot
      Disallow: /slabinventory/search/*

      Thanks.

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

        That looks valid to me. It's possible you may not need "*" at the end of each rule but I can't see it doing any harm either

        I might go more like:

        User-agent: ia_archiver
        Disallow: /*/search/

        User-agent: rogerbot
        Disallow: /*/search/

        ^ this would stop all search URLs being indexed, so even if you introduced new search facilities later in other directories - they would 'probably' be caught too (assuming that is your intention, assuming they were still in /search/ subdirs)

        Don't think what you have done is wrong though.

        Always check using Google's robots.txt tester to be safe. Just put your rules into the tester (altering them to be used for all user-agents), and try out some different URL patterns. When it works as you like, update your real robots.txt file (remembering of course, to restore your rogerbot / alexa UA targeting - if you don't want the rules to also apply to Google!)

        1 Reply Last reply Reply Quote 1
        • Xiano
          Xiano last edited by

          Hi,

          Firstly, yes, that robots.txt is valid and would work for your purpose.

          There's a great tool (https://technicalseo.com/tools/robots-txt/) that allows you to put in your proposed robots.txt file contents, the URL you want to test and even the robot you want to test against and it lets you know the result.

          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post
          • How can a keyword placed on a page with the Moz page optimization score of 100 be ranked #51+?
            matt.nails
            matt.nails
            1
            8
            110

          • Google is Still Blocking Pages Unblocked 1 Month ago in Robots
            Tyler123
            Tyler123
            0
            3
            131

          • Do I need to block my cart page in robots.txt?
            Hutch42
            Hutch42
            0
            3
            2.4k

          • Should I block Map pages with robots.txt?
            imaginex
            imaginex
            0
            3
            73

          • How to use robots.txt to block areas on page?
            LauraHT
            LauraHT
            0
            8
            225

          • How come only 2 pages of my 16 page infographic are being crawled by Moz?
            EricksonCoaching
            EricksonCoaching
            0
            7
            91

          • Warnings for blocked by blocked by meta-robots/meta robots Nofollow...how to resolve?
            Cyrus-Shepard
            Cyrus-Shepard
            0
            3
            415

          • Search Engine Blocked by Robot Txt warnings for Filter Search result pages--Why?
            languedoc
            languedoc
            0
            5
            915

          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