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. Googlebot soon to be executing javascript - Should I change my robots.txt?

    Googlebot soon to be executing javascript - Should I change my robots.txt?

    Search Engine Trends
    3 2 504
    • 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.
    • danatanseo
      danatanseo last edited by

      This question came to mind as I was pursuing an unrelated issue and reviewing a site's robots/txt file.

      Currently this is a line item in the file:

      Disallow: https://*
      
      According to a recent post in the Google Webmasters Central Blog: [http://googlewebmastercentral.blogspot.com/2014/05/understanding-web-pages-better.html](http://googlewebmastercentral.blogspot.com/2014/05/understanding-web-pages-better.html "Understanding Web Pages Better") Googlebot is getting much closer to being able to properly render javascript. Pardon some ignorance on my part because I am not a developer, but wouldn't this require Googlebot be able to execute javascript? If so, I am concerned that disallowing Googlebot from the https:// versions of our pages could interfere with crawling and indexation because as soon as an end-user clicks the "checkout" button on our view cart page, everything on the site flips to https:// - If this were disallowed then would Googlebot stop crawling at that point and simply leave because all pages were now https://  ???  Or am I just waaayyyy over thinking it?...wouldn't be the first time!  Thanks all! [](http://googlewebmastercentral.blogspot.com/2014/05/understanding-web-pages-better.html "Understanding Web Pages Better") 
      
      1 Reply Last reply Reply Quote 0
      • DougRoberts
        DougRoberts last edited by

        Hi Dana,

        When you click on the checkout button - what's the mechanism for taking people to the https:// site. Is it just that the checkout link uses https:// in it's link? Is there some javascript wizardry you're particularly concerned about?

        Even though googlebot follows this one link to the https version of the cart, it will still have all the other links on the previous page queued up to follow (non-https) so I don't think this will stop the crawl at that point. It would be a nightmare if googlebot stopped crawling hte entire site everytime it went down a rabbit hole!

        That's not to say that you wouldn't want to consider no-following your checkout button. I'm sure neither you, nor google want to the innards of the cart pages to be indexed? There's probably other pages you'd rather Googlebot spent it's time finding right?

        My take on the Google blog about understanding Javascript is that the aim is to try and do a better job discovering content that might be hidden by Javascript/Ajax. It's a problem for google when the raw html that they're crawling doesn't accurately reflect the content that is displayed in front of a real visitor.

        danatanseo 1 Reply Last reply Reply Quote 1
        • danatanseo
          danatanseo @DougRoberts last edited by

          Excellent answer. Thanks so much Doug. I really appreciate it! Adding a "nofollow" attribute to the Checkout button is a good suggestion and should be fairly easy to implement. I realize that internal nofollows are not normally recommended, but in this instance, may not be a bad idea.

          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

          • Google SERPs changes
            Mobilio
            Mobilio
            0
            4
            143

          • Is googlebot the slowest bot?
            RyanPurkey
            RyanPurkey
            0
            4
            67

          • Site titles / descriptions change - Google Algo Change ?
            WhiteboardCreations
            WhiteboardCreations
            0
            3
            206

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

          • Google is changing my title.
            SanketPatel
            SanketPatel
            0
            5
            285

          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