Website Security

Was Your Website Hacked? What a Contractor Should Do First

How to spot a hacked site, what to do first and how to get Google to drop the warning. Written for owners who didn’t build the site themselves.

By Osprey Solutions·November 16, 2026·13 min read
A small dark stone model house with a crack running down its front wall and one warm lit window, beside a mason's trowel and a tub of mortar ready for the repair

If your website was hacked, call your web host first, then change every password from a clean device: hosting, website admin, domain registrar and email. Restore a backup made before the hack and fix whatever let the attacker in. Then request a review in Google Search Console so any Google warning comes off.

Most contractors find out from someone else: a customer who calls about a strange page, a red warning in Chrome or an email from Google. The first instinct is to start deleting things. Slow down. The order you do things in decides whether the hack is gone for good or back next week.

How Do You Know If Your Website Was Hacked?

The clearest signs come from Google or your host: a red warning page when someone opens your site, a note under your listing in Google that the site may be hacked, an email from Google Search Console or a host that suddenly suspends your account. Google’s help page on site warnings says “Google Search results might show labels such as ‘This site may harm your computer’ or ‘This site may be hacked’ next to your site.”

Other signs are quieter. Watch for these:

Then run three free checks:

Why Does a Hacked Site Look Fine to the Owner?

Because many hacks hide from the owner on purpose. The spam shows up for Google, or for phone users arriving from a Google search, while someone typing the address on an office computer sees the normal site. Google calls this cloaking.

Google’s guide to the Japanese keyword hack warns that a spam page can even look like a dead link when you open it: “Hackers will try to trick you into thinking the page is gone or fixed when it’s still hacked.” Its post on sneaky mobile redirects adds that “if your website has been hacked, a potential result can be redirects to spammy domains for mobile users only.”

So test the way your customers arrive. Pick up your phone, search Google for your business name and tap your own result. Google recommends exactly this: “We recommend you to check the mobile user experience of your site by visiting your pages from Google search results with a smartphone.” If you end up on someone else’s site, something on yours is redirecting your customers. That could be a hack, though Google notes an ad script added to a site can do it too, so check the Security Issues report first. The URL Inspection tool in Search Console shows what Google sees on any page, which is how you catch spam that hides from you.

What Should You Do First When Your Website Is Hacked?

Call your web host, then lock down every login before you clean anything. If you clean first, the attacker can walk straight back in with a password they already have. Here is the order:

If an agency or a freelancer built your site, ask them today who holds the hosting and registrar logins. If the answer is “we do”, you’re relying on them to fix this. Our post on what you should own if your agency quit lists the accounts to get into your own name.

Not sure your site is clean? Book a free 20-minute call. We’ll look at what Google shows for your website with you and tell you what to check first.

Book a Free Call →

Should You Take Your Website Offline While You Fix It?

Usually yes. Doing it for a short time is unlikely to hurt your rankings. The same Google recovery guide says: “It’s unlikely that taking your site offline intermittently or temporarily during the recovery process will affect future ranking of your site in search results.”

Taking the site down protects your customers from whatever the hacker added, and it stops the hacker from making changes while you work. Google suggests showing a temporary “down for maintenance” response (a 503 code) from outside the hacked files, and says your host may be able to set that up for you. Blocking search engines in your robots.txt file isn’t enough. It only stops crawlers, so customers would still reach the bad pages.

There is a cost. While the site is down, anyone who taps Website on your Google Business Profile lands on the maintenance page. Calls from the profile don’t depend on your website, so make sure the phone gets answered while the site is offline.

How Do You Clean a Hacked Website So It Stays Clean?

Restore a backup from before the hack, then close the hole the attacker used. Skip the second part and the same hole lets them back in. Google’s cleanup guide starts with the backup itself: “First, check that your backup was created before your site was hacked.”

Not every hack needs a paid cleanup. Google’s steps for a clean, current backup are short: restore it, install every update, then carry on with the password changes and the fix below. On a small site with a good backup, that can be the whole job.

Then find the way in. Google’s list of the top ways sites get hacked comes down to a few causes a contractor can check:

If your site runs on WordPress, our post on WordPress security fixes shows how to tell whether your version is behind. If it’s on a hosted builder like Wix or Squarespace, you don’t install or update the site software yourself, so the plugin route mostly doesn’t apply. A stolen password still works on those platforms, though, so the login steps above matter just as much.

Scanners help, but no single one sees everything. WordPress.org’s guide lists two kinds: security plugins that scan from inside the site, and remote scanners such as VirusTotal and Sucuri SiteCheck that look from outside. A remote scanner only sees what your site shows to visitors, so it can miss files hidden on the server.

Hire help if you have no clean backup or if the hack came back after a cleanup. The same goes if nobody on your side is comfortable working on the server. Google is blunt about it: “Fixing a malware issue on your site requires the ability to read and understand code, and possibly web server configurations for your site.” Before you pay anyone, ask three questions:

One more check before anyone deletes files. If the hack could have reached customer details, such as form entries or logins, Google’s cleanup guide says “you may want to consider any business, regulatory, or legal responsibilities before you begin cleaning your site or deleting any files.” Get that advice first, because a wiped server can’t answer questions later.

How Do You Get Google’s Hacked Warning Removed?

Clean every page, then ask for a review in the Security Issues report in Search Console. Google says “you should rely on the Security Issues report as the source of truth to verify whether any security issues exist for your site, or if they have been fixed.”

Two rules from Google’s Security Issues help page matter here. First, fix everything, not only the pages Google listed. The report shows a sample of affected pages, not a full list, and “Fixing the issue on just some pages will not earn you a partial return to search results.” Second, don’t ask too early: “Submitting a reconsideration request when the issue hasn’t been fixed can cause longer turnaround time for the next request, or even get you marked as a repeat offender.”

As for timing, the help page says: “A review can take from a few days to a few weeks to complete.” Google’s older review guide splits it by type: “Reviews for sites infected with malware require a few days to process.” And: “Reviews for sites hacked with spam can require up to several weeks to process.”

While you wait:

Google tries to keep hacked pages out of its results, so a hack can cost you search visits for as long as it lasts. If calls from Google stay low after the warning is gone, look at your rankings next. That is the work our local SEO service does.

How Do You Stop Your Website Getting Hacked Again?

Most of it is routine upkeep. Set it up once, then check it monthly:

If someone else looks after your website, ask them to show you each of these on a screen share, not just tell you they’re done.

Where This Advice Comes From

The steps in this guide come from Google’s help pages for hacked sites (the Search Console help pages on security issues and site warnings, and Google’s hacked-site guides on web.dev) and from WordPress.org’s guide for hacked WordPress sites, all read on November 16, 2026. Several of the web.dev guides carry a 2015 date. Where one of them and the current Search Console help page give different review times, both are shown. No new study was run for this post.

The search figures are U.S. and Canadian monthly averages from Google’s Keyword Planner, pulled on November 16, 2026 for November 2025 to October 2026: about 5,400 U.S. and 880 Canadian searches a month for “website hacked”, a figure Google shares with close variants like “hacked website”. Search difficulty and AI Overview data weren’t available for this post. Wordfence’s pricing page refused automated requests, and no cleanup company’s price is quoted because the one pricing page that could be read didn’t state a currency. Osprey builds websites and sells local SEO to contractors, so weigh our advice with that in mind.

Frequently Asked Questions

How long does it take Google to remove a hacked warning?
Once every page is fixed and you request a review in Search Console, Google’s help page says a review can take from a few days to a few weeks. Its older review guide says malware reviews take a few days and reviews for spam hacks can take up to several weeks. Asking before everything is fixed can slow the next review down.
Can I just restore an old backup of my website?
Yes, if the backup was made before the hack, and only if you also fix whatever let the attacker in. Restore it, install every update, change every password and remove plugins you don’t use. A backup taken after the break-in brings the hack back with it.
Will a hacked website hurt my Google rankings?
It can. Google tries to keep hacked content out of its results, so hacked pages can be hidden or shown with a warning, and Chrome can show visitors a red warning page. Google also says taking a site offline for a short time to fix it is unlikely to affect its future rankings. The sooner the site is clean and the review is approved, the sooner the warnings come off.

More From Osprey Solutions

Keep Your Website Working for You.

Book a free 20-minute call. We’ll look at your website and what Google shows for it, then tell you what to fix first.

Or call: (778) 910-0756