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. How to stop Search Bot from crawling through a submit button

    How to stop Search Bot from crawling through a submit button

    Technical SEO Issues
    5 4 1.5k
    • 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.
    • NarenBansal
      NarenBansal last edited by

      On our website http://www.thefutureminders.com/, we have three form fields that have three pull downs for Month, Day, and year. This is creating duplicate pages while indexing. How do we tell the search Bot to index the page but not crawl through the submit button?

      Thanks

      Naren

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

        Block the pages/folders you do not wish to be indexed with robots.txt file:

        www.website.com/robots.txt

        User-agent: *
        Disallow: /folder1/
        Disallow: /folder2/
        
        

        OR you can add canonical tags to the other pages which are creating duplicate content.

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

          Hi

          To my knowledge, you don't stop it from crawling through the button (like a nofollowed link), rather you block the robot at the page it ends up on after clicking submit.

          Say the user hits submit and it takes them to mydomain.com/confirm.html  On that page you'll want to add;

          ....if you want it to NOT index the page but follow the links on it.

          or

          ...if you want it to NOT index and NOT follow the links on that page.

          Its advised that its better to do this with the meta tag than in robots.txt.

          Hopefully I've understood the question correctly!

          -Dan

          NarenBansal 1 Reply Last reply Reply Quote 0
          • Hannahm24
            Hannahm24 last edited by

            The advantage of blocking a page from being indexed via a meta tag is it is less likely to have unexpected consequences. I've often seen in the past cases where an incorrectly modified robots.txt file leads to a site being blocked by accident.

            1 Reply Last reply Reply Quote 0
            • NarenBansal
              NarenBansal @evolvingSEO last edited by

              Hi Dan

              What is happening is this - since we have all the months [12], all the dates [31] and years[1921 through 2011] in the form fields, the robot seems to be taking these incrementally and then using the submit button. After the submit button, user is presented with a registration page. While we do want the search to index the rest of the page and the crawl through the rest of the page links we do not want it to crawl through that submit button. I hope I am making sense.

              Naren

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Some bots excluded from crawling client's domain
                effectdigital
                effectdigital
                0
                2
                31

              • My pages are being crawled, but not indexed according to Search Console
                DonnaDuncan
                DonnaDuncan
                0
                4
                64

              • Why does Bing bot crawl so aggressively?
                Alick300
                Alick300
                1
                2
                631

              • How to stop crawls for product review pages? Volusion site
                MonicaOConnor
                MonicaOConnor
                0
                9
                438

              • Roger bot taking a long time to crawl site
                caterfor
                caterfor
                1
                5
                590

              • The search button on my site no longer works. Any fixes?
                mad2k
                mad2k
                0
                8
                308

              • Whats the best way to stop search results from being indexed?
                Sebes
                Sebes
                0
                4
                1.0k

              • Can Search engines crawl this page
                AdamThompson
                AdamThompson
                0
                4
                972

              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