My website has been hacked: what to do

A hacked website needs four things in order: lock it down, find how the attacker got in, clean or restore it, and ask Google to review it. Google publishes a recovery guide for hacked sites in seven steps, from building a support team to requesting a review. A new password alone leaves in place whatever the attacker has already added to the site.

Updated

This guide, surveyed at release eab6db0 on 19 October 2026: words per section.

Each sounding opens its section

  1. 01 The signs 78 words
  2. 02 The first hour 74 words
  3. 03 The seven steps Google gives 40 words
  4. 04 Clean, or restore 78 words
  5. 05 Getting Google’s warning removed 67 words
  6. 06 Keeping it from happening again 80 words
  7. 07 Questions people ask 132 words
  8. 08 Free competitor gap report 97 words
  9. 09 More in this series 119 words
Words
765
Site 366–1,117 · median 749.5
Sections (H2)
9
Site 3–14 · median 9
Internal links
18
Site 1–36 · median 19
File
71.4 kB
HTML, uncompressed · of 83.6 kB budget · 0 scripts

Sheet

068 of 126

Release eab6db0

Standard 49 · 101 checks

The signs

A hack shows itself in one of five ways.

  • A warning label on the result in Google, or a full-page warning in the browser. Google’s help says pages affected by a security issue can appear with either.
  • Visitors arriving from Google are sent to a different website.
  • A search for site: followed by your domain lists pages you never wrote.
  • The Security issues report in Search Console shows a finding.
  • The host has suspended the account.

The first hour

  1. Tell the host. Hosts see this often, and many will help contain it.
  2. Take the site offline or put it behind a holding page, so that visitors are not harmed.
  3. Change every password: hosting, the website’s administrator accounts, file transfer and the database.
  4. Leave the files as they are for now. They are the evidence of how the attacker got in.
  5. Find the most recent backup taken before the hack began.

The seven steps Google gives

Google’s guide for hacked sites names seven steps, in this order.

  1. Build a support team.
  2. Quarantine your site.
  3. Use Search Console.
  4. Assess the damage.
  5. Identify the vulnerability.
  6. Clean and maintain your site.
  7. Request a review.

Clean, or restore

Restoring a backup from before the hack is the fastest route to a clean site. A restore on its own puts back the weakness as well: the outdated plugin, the weak password or the abandoned theme that let the attacker in. Update everything and close the hole before the site goes back online.

Without a clean backup, the site has to be cleaned by hand: every changed file, every unknown user account, every injected page.

Getting Google’s warning removed

The Security issues report in Search Console lists what Google found, under three headings: hacked content, malware and unwanted software, and social engineering. When the whole site is clean, select “Request Review” in the report and describe what was fixed.

Google states that fixing only some pages does not earn a partial return to search results. Most reviews take several days or weeks.

Keeping it from happening again

Four habits prevent most repeat attacks.

  • Updates applied as they are released, for the platform, the theme and every plugin.
  • Unused plugins, themes and user accounts removed.
  • A unique password and two-step verification on every account.
  • Backups taken on a schedule and stored away from the website’s own server.

A browser warning that says “Not secure” is a different matter from a hack. Our guide to why a website says not secure covers that one.

Questions people ask

How do I know if my website has been hacked?

Common signs are a warning in Google's results or in the browser, visitors being redirected to another site, pages in Google that you never wrote, and a message in the Security issues report in Search Console.

How long does Google take to remove a hacked warning?

Google's Search Console help says most reviews take several days or weeks. The review begins only when the owner requests it in the Security issues report, after the whole site is clean.

Will changing my password fix a hacked website?

No. A new password stops the same login being used again, and leaves in place any files, users or code the attacker added. The site has to be cleaned or restored as well.

Free competitor gap report

Recovery brings a site back to where it was. Name up to three competitors and we measure the restored site against theirs, then send you where they are ahead and what to fix first.

  1. Speed and technical health, side by side
  2. On-page SEO and site structure
  3. The content they are found for and you are not
  4. Who holds the searches that matter in your market
  5. A prioritised list of what to fix first
Request your free report by email
Address
contact@hadalmedusa.com
Include
your site; up to three competitors; where you compete