How to recover SEO rankings after a website hack
If your website has been hacked and you have removed the infection and closed the security vulnerability, the next step is to assess the damage to its SEO visibility and reputation. This article sets out the checks and recovery steps to take. Recovery depends on the incident and Google's reassessment; no checklist can guarantee a complete recovery or fixed timeframe.
Review what you have done since the hack
- Confirmed that the website was compromised
- Created a backup before making changes
- Temporarily restricted access where necessary while cleaning the website
- Identified how the attacker gained access and closed that vulnerability. If outdated themes, plugins or other software were involved, update them and verify that the exploited route is actually closed.
- Removed the infection and any malicious changes
- Restored normal website access
With the website running again, assess how the incident affected its search visibility.
Assessing the SEO damage
Check Google Safe Browsing
Start by visiting this page:
Google Safe Browsing site status
Enter the website’s domain in the site-status checker. A clear status does not establish that every part of the website is secure.
Security issues can involve different types of harmful content, including:
- Attack content: Malware or other content that can harm visitors' devices.
- Compromised content: Spam or other material added by attackers to a hacked website.
Use the report to check whether Google has identified unsafe content on your website.
Check Google Search Console
Sign in to Google Search Console and check the property's messages and notifications for warnings about the incident.
Then open the Security Issues report. It shows security problems Google has detected, including malware and hacked content.
Check your email
Check the email account associated with Search Console for security notifications. Also review relevant administrative mailboxes, such as admin@, webmaster@ or support@. Receiving no email does not prove that the website is safe.
Check how the website appears in search
Open Google and enter:
site:example.com
Replace “example.com” with your own domain. This can help you spot unfamiliar indexed pages, but a site: search is not a complete inventory of everything Google has indexed.
If the website was compromised, search results or the browser may display security warnings, for example:
- “This site may harm your computer”
- “This site may be hacked”
Warning wording and placement can vary. A warning indicates that a security issue still needs to be checked with Google's reporting tools.
How malware and website hacks affect SEO
Google aims to protect people from unsafe content. A hacked website may lose search visibility, and security warnings can discourage visits. Two possible effects are:
- A fall in search rankings
- Warnings shown to people trying to visit the website
Even after someone clicks a search result, the browser may display a warning based on Google Safe Browsing information.
Search visibility changes and browser warnings can both reduce visits. The scale and timing depend on the incident, the affected pages and how quickly the problems are detected and resolved.
How to recover search visibility and trust after a hack
Search visibility and visitor trust can recover after a website is properly cleaned. There is no reliable 24-hour recovery promise. To support recovery, take these steps:
- Verify that no malware, injected spam or other attacker-controlled content remains. If the underlying compromise persists, the website can be infected again.
- If you have not already done so, verify the website in Google Search Console. Use it to inspect reported security issues, affected examples and the site's search performance. Google's help documentation explains how to add a property.
- After fixing all reported security issues, use Request a review in the Security Issues report where available. This requests a security reassessment; it is not a general request to index every page.
- Allow time for Google's security review and subsequent recrawling. Removing a warning and recovering search rankings are different processes. Review completion does not guarantee restoration of previous rankings within 24 hours.