My website was hacked and my rankings dropped. What now?
The short answer
Secure the site first, then clean out every trace of the hack, then ask Google to review it. Search Console's Security issues report shows what Google has detected, and once the site is clean you can request a review there. Rankings usually recover once the hacked pages are gone and Google has recrawled the site.
Signs Your Website Has Been Hacked
Some hacks are obvious, such as a defaced home page. Many are not. Common signs include:
- Google showing "This site may be hacked" under your listing.
- A browser warning visitors that the site is deceptive or dangerous.
- Search results showing your domain with pages you never made, often in another language or selling unrelated products.
- Visitors being redirected to another site, sometimes only when they arrive from Google.
- A sudden jump in the number of indexed pages in Search Console.
Search your domain with "site:" in front of it, for example site:yourbusiness.co.nz, and look through the results for pages that should not be there.
Check What Google Has Found in Search Console
Open Google Search Console and go to Security and Manual Actions, then Security issues. Google lists the types of problem it has detected and example addresses. Check the Manual actions report as well, in case spam added by the attacker has led to a manual action. That report is explained in what is a Google manual action?
If you do not have Search Console access, getting it is the first step. A site managed by a former developer or agency may still have them as the only owner.
Cleaning Up a Hacked Site Properly
Cleaning a hack is a job for whoever manages your website or a security specialist, but the steps are well established, and Google's help for hacked sites sets them out:
- Change every password, including hosting, website admin, database and FTP.
- Update the website software, theme and plugins, and remove any you no longer use.
- Remove the malicious code and the spam pages, not only the ones you can see.
- Restore from a clean backup if one exists from before the hack.
- Check for new admin users or Search Console owners added by the attacker.
Spam pages the hacker created should return a "not found" error once removed. Do not redirect them to your home page.
Asking Google to Review the Site
Once the site is clean, request a review from the Security issues report. Google checks the site and removes the warnings if it agrees the problem is fixed. If there is a manual action, submit a reconsideration request from that report too.
Rankings often come back as Google recrawls the clean pages, but the timing is not fixed, and a site that was hacked for a long time may take longer. If the site has vanished from Google altogether, see why has my website disappeared from Google?