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. Stuck trying to deindex pages from google

    Stuck trying to deindex pages from google

    Technical SEO Issues
    5 3 471
    • 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.
    • Ruchy
      Ruchy last edited by

      Hi There,

      We had developers put a lot of spammy markups in one of our websites. We tried many ways to deindex them by fixing it and requesting recrawls...  However, some of the URLs  that had these spammy markups were incorrect URLs - redirected to the right version, (ex. same URL with or without  /  at the end)

      so now all the regular URLs are updated and clean, however, the redirected URLs can't be found in crawls so they weren't updated, and couldn't get the spam removed. They still show up in the serp.

      I tried deindexing those spammed pages by making then no-index in the robot.txt file.  This seemed to  be working for about a week, and now they showed up again in the serp

      Can you help us get rid of these spammy urls?

      edit?usp=sharing

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

        Hello Ruchy,

        If by "making no-index" in the robots you are meaning _disallowing _them, you are making ir wrong.
        Robots.txt are just signs to the robots and only tell them to NOT CRAWL them, it doesnt prevent from indexing those pages. (it can happen the case that there is a link pointing to that page and the crawler just passes by it).

        The most used way to remove certaing indexed pages is by adding the robots noindex meta tag, it should look like this:

        Also, some useful links:
        Robots meta directives - Moz
        Robots meta tag - Google developers
        Robots tag generator

        Hope it helps.
        GR

        LoganRay Ruchy 2 Replies Last reply Reply Quote 1
        • LoganRay
          LoganRay @GastonRiera last edited by

          I second what Gaston said. This usage of robots.txt is one of the most common misconceptions in SEO, so don't feel bad. Google actually explicitly says to not use robots.txt for index-prevention in their webmaster guide.

          To add to Gaston's point, make sure you remove the robots.txt disallow when you add the meta noindex tag he provided. If you don't let them crawl the page, they won't see the tag.

          You can also use remove these URLs temporarily in Search Console by going to the Google Index menu and selecting "Remove URLs". It'll remove from search results, then when they come back to crawl that page again (as long as you're letting them), they'll see your noindex tag and keep it out.

          1 Reply Last reply Reply Quote 0
          • Ruchy
            Ruchy @GastonRiera last edited by

            Hi Gaston,

            Thanks so much for taking your time to answer my question

            here are two points -  A- My mistake, in the robot.txt we disallowed it, and it was done right. Our devs did it for us and I double checked in in search console tester. Also, this idea did work for us the first few weeks.

            B - There is no place the crawlers can find these pages to recrawl, as they are no longer linked from anywhere in my site. will adding the no index help? If yes, how long can it take?

            GastonRiera 1 Reply Last reply Reply Quote 0
            • GastonRiera
              GastonRiera @Ruchy last edited by

              Ruchy,

              Yeap it might had helped for a few weeks. But internal links from your site are not the only way to crawl all your pages. Remember that there may be other sites linking other pages.

              B- Absolutely, adding noindex will help. There is no way to know for sure how long will it take, give it a few weeks. Also, it could help removing manually all those pages with the Google Search Console, as Logan said.

              Hope it helps!.
              GR

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Home Page Deindexed Only at Google after Recovering from Hack Attack
                killthebillion
                killthebillion
                0
                19
                371

              • A few pages deindexed from Google .. PLEASE HELP!
                Cyrus-Shepard
                Cyrus-Shepard
                0
                9
                1.1k

              • Page disappeared from Google index. Google cache shows page is being redirected.
                shop.nordstrom
                shop.nordstrom
                0
                5
                761

              • How long does it take for Google for deindexing pages?
                TCM-SEO
                TCM-SEO
                0
                4
                1.9k

              • Home page deindexed by google
                SWKurt
                SWKurt
                0
                4
                511

              • Trying to get on Google page one for keyword "criminal defense attorney san diego". What can I do?
                micasalucasa
                micasalucasa
                0
                6
                1.9k

              • I have 15,000 pages. How do I have the Google bot crawl all the pages?
                KeriMorgret
                KeriMorgret
                0
                5
                714

              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