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 Cleanup the Google Index After a Website Has Been HACKED

    How To Cleanup the Google Index After a Website Has Been HACKED

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

      We have a client whose website was hacked, and some troll created thousands of viagra pages, which were all indexed by Google.  See the screenshot for an example.  The site has been cleaned up completely, but I wanted to know if anyone can weigh in on how we can cleanup the Google index.  Are there extra steps we should take?  So far we have gone into webmaster tools and submitted a new site map.

      ^802D799E5372F02797BE19290D8987F3E248DCA6656F8D9BF6^pimgpsh_fullsize_distr.png

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

        Hi,

        Just to let you know it's quite easy to find the domain of the site in question from the screenshot you provided 😉

        I think as you've created a new sitemap and submitted it to Google and removed all the pages so they return 404s, you should be fine. The page will just drop out of the index in time. You might also want to add the address of your XML sitemap to your robots.txt file as it's not there at present.

        I crawled the site using Screaming Frog and couldn't see any dodgy looking pages remaining. You could create removal requests of the pages in Webmaster Tools if you'd like to take an extra step. Do this under Google Index > Remove URLs. To prevent this happening again, make sure you keep your WordPress installation and all plugins up to date.

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

          If you submitted a new sitemap then you should be fine, but "in case of emergency", you can try listing the individual URL's in Google Webmaster Tools > Google Index > Remove URL's. It's a tedious process, but something else you can try.

          Sucks, doesn't it? Wordfence or another WP security plugin is well worth the time to install and monitor. Good luck.

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

            Doesn't have to be so tedious. If you have a list of URLs you can use the bulk removal extension for Chrome found here: https://github.com/noitcudni/google-webmaster-tools-bulk-url-removal

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

              As has been suggested you can request the removal of pages in GWMT and you should keep any wordpress site and plugins up to date.

              To add to this, you might want to look at something like Cloudflare as an extra layer to protect your clients site. We've been using it for a year now and its made a massive difference, both to performance and security.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • My WP website got attack by malware & now my website site:www.example.ca shows about 43000 indexed page in google.
                0
                1
                82

              • Website homepage temporarily getting removed from google index
                Vanderlindemedia
                Vanderlindemedia
                0
                5
                66

              • My Website stopped being in the Google Index
                sydneygardening
                sydneygardening
                0
                6
                331

              • Is there a way to get a list of all pages of your website that are indexed in Google?
                effectdigital
                effectdigital
                0
                3
                177

              • Does Index Status Goes Down If Website is Penalized by Google?
                Prabhu.Sundar
                Prabhu.Sundar
                0
                4
                385

              • Website Migration - Very Technical Google "Index" Question
                reidsteven75
                reidsteven75
                0
                3
                154

              • Website is not indexed in Google
                B.Great
                B.Great
                0
                7
                169

              • Google crawl index issue with our website...
                ILM_Marketing
                ILM_Marketing
                0
                10
                1.1k

              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