undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. Googlebot does not obey robots.txt disallow

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Googlebot does not obey robots.txt disallow

Technical SEO
4
12
3.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • TalkInThePark
    TalkInThePark last edited by Nov 25, 2012, 12:13 PM

    Hi Mozzers!

    We are trying to get Googlebot to steer away from our internal search results pages by adding a parameter "nocrawl=1" to facet/filter links and then robots.txt disallow all URLs containing that parameter.

    We implemented this late august and since that, the GWMT message "Googlebot found an extremely high number of URLs on your site", stopped coming.

    But today we received yet another. The weird thing is that Google gives many of our nowadays robots.txt disallowed URLs as examples of URLs that may cause us problems.

    What could be the reason?

    Best regards,

    Martin

    1 Reply Last reply Reply Quote 0
    • Cyrus-Shepard
      Cyrus-Shepard @TalkInThePark last edited by Nov 29, 2012, 3:52 AM Nov 29, 2012, 3:52 AM

      Sorry for the late reply. Feel free to send me a PM. (not sure I can help, but more than happy to take a look)

      1 Reply Last reply Reply Quote 0
      • TalkInThePark
        TalkInThePark @TalkInThePark last edited by Nov 27, 2012, 7:38 AM Nov 27, 2012, 7:38 AM

        We do not currently have any sanitation rules in order to maintain the nocrawl param. But that is a good point. 301:ing will be difficult for us but I will definitely add the nocrawl param to the rel canonical of those internal SERPs.

        1 Reply Last reply Reply Quote 0
        • TalkInThePark
          TalkInThePark @Igal_Zeifman last edited by Nov 27, 2012, 7:32 AM Nov 27, 2012, 7:32 AM

          Thank you, Igol. I will definitely look into your first suggestion.

          1 Reply Last reply Reply Quote 0
          • TalkInThePark
            TalkInThePark @Cyrus-Shepard last edited by Nov 27, 2012, 7:28 AM Nov 27, 2012, 7:28 AM

            Thank you, Cyrus.

            This is what it looks like:

            User-agent: *
            Disallow: /nocrawl=1

            The weird thing is that when testing one of the sample URLs (given by Google as "problematic" in the GWMT message and that contains the nocrawl param) on the GWMT "Blocked URLs" page by entering the contents of our robots.txt and the sample URL, Google says crawling of the URL is disallowed for Googlebot.

            On the top of the same page, it says "Never" under the heading "Fetched when" (translated from Swedish..). But when i "Fetch as Google" our robots.txt, Googlebot has no problems fetching it. So i guess the "Never" information is due to a GWMT bug?

            I also tested our robots.txt against your recommended service http://www.frobee.com/robots-txt-check. It says all robots has access to the sample URL above, but I gather the tool is not wildcard-savvy.

            I will not disclose our domain in this context, please tell me if it is ok to send you a PW.

            About the noindex stuff. Basically, the nocrawl param is added to internal links pointing to internal search result pages filtered by more than two params. Although we allow crawling of less complicated internal serps, we disallow indexing of most of them by "meta noindex".

            Cyrus-Shepard 1 Reply Last reply Nov 29, 2012, 3:52 AM Reply Quote 0
            • Igal_Zeifman
              Igal_Zeifman @Cyrus-Shepard last edited by Nov 27, 2012, 5:18 AM Nov 27, 2012, 5:18 AM

              Thanks.

              100% agree with the Meta Noindex suggestion.

              1 Reply Last reply Reply Quote 0
              • Cyrus-Shepard
                Cyrus-Shepard last edited by Dec 8, 2012, 11:17 PM Nov 27, 2012, 2:00 AM

                It can be tricky blocking parameters with robots.txt. The first thing you want to do is make sure your are actually blocking the URLs. There are a few good robots.txt checkers out there that can help:

                • http://tool.motoricerca.info/robots-checker.phtml
                • http://www.frobee.com/robots-txt-check

                You're file is probably going to look something like:

                User-agent: *
                Disallow: /*?nocrawl=1

                ... but this could vary depending on exactly you don't want crawled

                +1 to Igal's suggestion of handling these via parameter settings in Google Webmaster Tools: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1235687

                Finally, if your goal is to keep search results out of the index (it probably should be) then you should also highly consider using a meta robots NOINDEX tag on all search results pages. You can also slap a nofollow on links pointing to search results as this might also help Google steer clear of those pages.

                Best of luck!

                Edit: Here's what John Wu of Google Webmaster has to say...

                "We show this warning when we find a high number of URLs on a site -- even before we attempt to crawl them. If you are blocking them with a robots.txt file, that's generally fine. If you really do have a high number of URLs on your site, you can generally ignore this message. If your site is otherwise small and we find a high number of URLs, then this kind of message can help you to fix any issues (or disallow access) before we start to access your server to check gazillions of URLs :-)."

                Igal_Zeifman TalkInThePark 2 Replies Last reply Nov 27, 2012, 7:28 AM Reply Quote 2
                • Igal_Zeifman
                  Igal_Zeifman @TalkInThePark last edited by Nov 27, 2012, 6:56 AM Nov 26, 2012, 1:02 PM

                  Didn't say it wasn't. 🙂

                  I`m just not sure how these rules apply to parameters, since they are not a part of the "core" URL.

                  (For example: What happens if I take a URL from your site, change a nocrawl=1 to nocrawl=0 and link to it from mine?
                  Do you have any URL sanitation rules in place to overcome that or will the page be indexed by Googlebot when it crawls my site and moves on to yours?)

                  Personally, when dealing with parameters, I find it easier to work with WMT so I was offering an easier workaround, (at least for me)

                  To tell you the truth, I would use hard-coded on page meta noindex/nofollow here (again, as parameters can be so easily manipulated).

                  1 Reply Last reply Reply Quote 1
                  • TalkInThePark
                    TalkInThePark @Igal_Zeifman last edited by Nov 26, 2012, 12:53 PM Nov 26, 2012, 12:53 PM

                    Igal, thank your for replying.

                    But robots.txt disallowing URLs by matching patterns has been supported by Googlebot for a long time now.

                    Igal_Zeifman TalkInThePark 2 Replies Last reply Nov 27, 2012, 7:38 AM Reply Quote 0
                    • Igal_Zeifman
                      Igal_Zeifman last edited by Nov 26, 2012, 11:59 AM Nov 26, 2012, 11:59 AM

                      Hi

                      I`m not sure if this is the best way to go about it.

                      Robots.txt is commonly used for folder level disallow rules, I`m not sure how it will respond to parameters.

                      Having said that, there are several things you can do here:

                      1. You can use WMT to zero in on this parameter and  prevent it from being searched.
                      To do so choose Configuration>>URL Parameters, answer "Yes" to the question about content change and  
                          check-in the 3rd bullet (Only URL with value...) Of course you'll need to choose "1" as the right value.

                      2. If this still didn't solve your issue, you might want to try using htacess + regex to prevent access by user agent.
                          You can find user-agent information here Googlebot user agent list

                      Also, you may want to check my blog post  about some of the less known Googlebot Facts (shameless self-promotion)

                      Best

                      Igal

                      TalkInThePark 2 Replies Last reply Nov 27, 2012, 7:32 AM Reply Quote 1
                      • TalkInThePark
                        TalkInThePark @dmccarthy last edited by Nov 25, 2012, 3:31 PM Nov 25, 2012, 3:31 PM

                        I'll send you a PW, Des.

                        1 Reply Last reply Reply Quote 0
                        • dmccarthy
                          dmccarthy last edited by Nov 25, 2012, 2:46 PM Nov 25, 2012, 2:46 PM

                          What the domain.?

                          TalkInThePark 1 Reply Last reply Nov 25, 2012, 3:31 PM Reply Quote 0
                          • 1 / 1
                          1 out of 12
                          • First post
                            1/12
                            Last post

                          Got a burning SEO question?

                          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                          Start my free trial


                          Browse Questions

                          Explore more categories

                          • Moz Tools

                            Chat with the community about the Moz tools.

                          • SEO Tactics

                            Discuss the SEO process with fellow marketers

                          • Community

                            Discuss industry events, jobs, and news!

                          • Digital Marketing

                            Chat about tactics outside of SEO

                          • Research & Trends

                            Dive into research and trends in the search industry.

                          • Support

                            Connect on product support and feature requests.

                          • See all categories

                          Related Questions

                          • AKCAC

                            GoogleBot still crawling HTTP/1.1 years after website moved to HTTP/2

                            google http https indexation crawl

                            Whole website moved to https://www. HTTP/2 version 3 years ago. When we review log files, it is clear that - for the home page - GoogleBot continues to only access via HTTP/1.1 protocol Robots file is correct (simply allowing all and referring to https://www. sitemap Sitemap is referencing https://www. pages including homepage Hosting provider has confirmed server is correctly configured to support HTTP/2 and provided evidence of accessing via HTTP/2 working 301 redirects set up for non-secure and non-www versions of website all to https://www. version Not using a CDN or proxy GSC reports home page as correctly indexed (with https://www. version canonicalised) but does still have the non-secure version of website as the referring page in the Discovery section. GSC also reports homepage as being crawled every day or so. Totally understand it can take time to update index, but we are at a complete loss to understand why GoogleBot continues to only go through HTTP/1.1 version not 2 Possibly related issue - and of course what is causing concern - is that new pages of site seem to index and perform well in SERP ... except home page. This never makes it to page 1 (other than for brand name) despite rating multiples higher in terms of content, speed etc than other pages which still get indexed in preference to home page. Any thoughts, further tests, ideas, direction or anything will be much appreciated!

                            Technical SEO | May 13, 2024, 8:42 AM | AKCAC
                            1
                          • LabeliumUSA

                            Robot.txt : How to block a specific file type in several subdirectories ?

                            Hello everyone ! I need help setting up a robot.txt. I'm trying to block all pdf files in particular directories so I'm using this command. In the example below the line is blocking all .gif in the entire site. Block files of a specific file type (for example, .gif) | Disallow: /*.gif$ 2 questions : Can I use this command to specify one particular directory in which I want to block pdf files ? Will this line be recognized by googlebots ? Disallow: /fileadmin/xxxxxxx/xxx/xxxxxxx/*.pdf$ Then I realized that I would have to write as many lines as many directories there are in which I want to block pdf files. Let's say I want to block pdf files in all these 3 directories /fileadmin/directory1 /fileadmin/directory1/sub1 /fileadmin/directory1/sub1/pdf Is there a pattern-matching rule I could use to blocks access to pdf files in all subdirectories instead of writing 3x the above line for each subdirectory ? For exemple : Disallow: /fileadmin/directory1*/ Many thanks in advance for any insight you may have.

                            Technical SEO | Nov 2, 2017, 8:20 PM | LabeliumUSA
                            0
                          • Kilgray

                            Robots txt. in page with 301 redirect

                            We currently have a a series of help pages that we would like to disallow from our robots txt. The thing is that these help pages are located in our old website, which now has a 301 redirect to current site. Which is the proper way to go around? 1- Add the pages we want to disallow to the robots.txt of the new website? 2- Break the redirect momentarily and add the pages to the robots.txt of the old one? Thanks

                            Technical SEO | Mar 7, 2016, 2:13 PM | Kilgray
                            0
                          • MickEdwards

                            Adding multi-language sitemaps to robots.txt

                            I am working on a revamped multi-language site that has moved to Magento.  Each language runs off the core coding so there are no sub-directories per language. The developer has created sitemaps which have been uploaded to their respective GWT accounts.  They have placed the sitemaps in new directories such as: /sitemap/uk/sitemap.xml /sitemap/de/sitemap.xml I want to add the sitemaps to the robots.txt but can't figure out how to do it.  Also should they have placed the sitemaps in a single location with the file identifying each language: /sitemap/uk-sitemap.xml /sitemap/de-sitemap.xml What is the cleanest way of handling these sitemaps and can/should I get them on robots.txt?

                            Technical SEO | Sep 17, 2013, 11:23 AM | MickEdwards
                            0
                          • Dan-Lawrence

                            Staging & Development areas should be not indexable (i.e. no followed/no index in meta robots etc)

                            Hi I take it if theres a staging or development area on a subdomain for a site, who's content is hence usually duplicate then this should not be indexable i.e. (no-indexed & nofollowed in metarobots) ? In order to prevent dupe content probs as well as non project related people seeing work in progress or finding accidentally in search engine listings ? Also if theres no such info in meta robots is there any other way it may have been made non-indexable, or at least dupe content prob removed by canonicalising the page to the equivalent page on the live site ? In the case in question i am finding it listed in serps when i search for the staging/dev area url, so i presume this needs urgent attention ? Cheers Dan

                            Technical SEO | Aug 23, 2013, 11:41 AM | Dan-Lawrence
                            0
                          • zeepartner

                            Block Domain in robots.txt

                            Hi. We had some URLs that were indexed in Google from a www1-subdomain. We have now disabled the URLs (returning a 404 - for other reasons we cannot do a redirect from www1 to www) and blocked via robots.txt. But the amount of indexed pages keeps increasing (for 2 weeks now). Unfortunately, I cannot install Webmaster Tools for this subdomain to tell Google to back off... Any ideas why this could be and whether it's normal? I can send you more domain infos by personal message if you want to have a look at it.

                            Technical SEO | Jul 8, 2013, 8:16 AM | zeepartner
                            0
                          • Webmaster123

                            I accidentally blocked Google with Robots.txt. What next?

                            Last week I uploaded my site and forgot to remove the robots.txt file with this text: User-agent: * Disallow: / I dropped from page 11 on my main keywords to past page 50. I caught it 2-3 days later and have now fixed it. I re-imported my site map with Webmaster Tools and I also did a Fetch as Google through Webmaster Tools. I tweeted out my URL to hopefully get Google to crawl it faster too. Webmaster Tools no longer says that the site is experiencing outages, but when I look at my blocked URLs it still says 249 are blocked. That's actually gone up since I made the fix. In the Google search results, it still no longer has my page title and the description still says "A description for this result is not available because of this site's robots.txt – learn more." How will this affect me long-term? When will I recover my rankings? Is there anything else I can do? Thanks for your input! www.decalsforthewall.com

                            Technical SEO | Nov 28, 2012, 6:44 AM | Webmaster123
                            0
                          • JohannCR

                            Internal search : rel=canonical vs noindex vs robots.txt

                            Hi everyone, I have a website with a lot of internal search results pages indexed. I'm not asking if they should be indexed or not, I  know they should not according to Google's guidelines. And they make a bunch of duplicated pages so I want to solve this problem. The thing is, if I noindex them, the site is gonna lose a non-negligible chunk of traffic : nearly 13% according to google analytics !!! I thought of blocking them in robots.txt. This solution would not keep them out of the index. But the pages appearing in GG SERPS would then look empty (no title, no description), thus their CTR would plummet and I would lose a bit of traffic too... The last idea I had was to use a rel=canonical tag pointing to the original search page (that is empty, without results), but it would probably have the same effect as noindexing them, wouldn't it ? (never tried so I'm not sure of this) Of course I did some research on the subject, but each of my finding recommanded one of the 3 methods only ! One even recommanded noindex+robots.txt block which is stupid because the noindex would then be useless... Is there somebody who can tell me which option is the best to keep this traffic ? Thanks a million

                            Technical SEO | Apr 13, 2012, 7:13 PM | JohannCR
                            0

                          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
                          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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                          • Accessibility
                          • Terms of Use
                          • Privacy

                          Looks like your connection to Moz was lost, please wait while we try to reconnect.