Websites

Signs Your Website Has Been Hacked and What to Do Next

How to recognise a hacked website, what to do in the first hours, how a proper clean-up works, and the habits that make it far less likely to happen again.

7 min read

Inovace Digital cover graphic on the signs your website has been hacked, with a warning on a browser

Quick answer

Common signs of a hacked website include visitors being redirected to spam sites, strange pages appearing in Google results, browser or Search Console security warnings, unknown admin users, changed files and your host suspending the account. Act quickly: secure access, keep a copy for investigation, clean or restore from a known good backup, then close the gap.

In this article Get a free audit

The signs your website has been hacked are not always obvious. Many attacks are designed to stay hidden from the owner while showing spam to search engines or redirecting only some visitors. Business owners often find out from a customer, a Google warning or a hosting email, sometimes weeks after the break-in. This guide lists the warning signs to look for, the first steps to take, and how to reduce the chance of it happening again.

Signs your website has been hacked that visitors notice

Some attacks are aimed at your visitors, so they are often the first to spot a problem.

  • Unexpected redirects. People land on your site and get sent to a gambling, pharmacy or scam page. Attackers often show this only to mobile users or to visitors coming from Google, so you may not see it when you type the address directly.
  • Browser warnings. Chrome or another browser shows a red warning that the site is deceptive or may harm the visitor's device.
  • Pop-ups and ads you did not add. New banners, fake download prompts or adverts in odd places.
  • Defaced pages. Rarer now, but some attacks still replace the homepage with a message.
  • Customers receiving strange emails that appear to come from your domain.

If a customer reports any of these, take it seriously even if you cannot reproduce it yourself. Try from a phone on mobile data, clicking through from a Google result.

Signs in Google and Search Console

Search engines often see the signs your website has been hacked before you do.

Spam pages in search results

Search Google for site:yourdomain.com and scroll through the results. If you see pages you never created, often in Japanese or other languages, selling products or pills, the site is likely compromised. This kind of spam injection is common on WordPress and other content management systems.

Search Console warnings

Check the Security issues report in Google Search Console. Google lists hacked content or malware it has detected there, with sample URLs. You may also receive an email alert.

Sudden changes in indexing or traffic

A sharp jump in indexed pages, a new sitemap you did not submit, or a sudden fall in search traffic can all point to an attack. Strange search queries in the performance report, unrelated to your business, are another clue.

Signs on the server and in the admin area

Some signs your website has been hacked only show up behind the scenes.

  • Unknown admin users in WordPress or your CMS, often with generic names.
  • Files changed recently that nobody on your team touched, or PHP files in the uploads folder where only images should be.
  • Your host suspends the site or warns about malware or unusual resource use.
  • Outgoing spam from your server, which can get your domain's emails blocked by other mail providers.
  • A security plugin or scanner reporting modified core files or known malware.
  • The site suddenly slows down or uses far more server resources than normal.

One of these alone may have an innocent explanation. Two or more together are a strong warning and should be investigated straight away.

What to do first if you see signs your website has been hacked

The first hours matter. Work through these steps calmly.

  1. Do not delete everything in a panic. You need the current files and database to find out how the attacker got in.
  2. Take a full copy of the site as it is now and keep it separate from your clean backups.
  3. Change every password: hosting, CMS admin accounts, FTP or SFTP, database and the email accounts linked to them. Turn on two-factor login wherever possible.
  4. Tell your hosting company. They can often see logs and may have already spotted the problem.
  5. Put up a maintenance page if visitors are being redirected or shown harmful content.
  6. Note what you saw and when, with screenshots. It helps the investigation and any review request later.

If you take payments or store customer data, ask your adviser whether you need to inform anyone, as obligations vary by country.

How does a proper clean-up work?

A real clean-up has three parts, and skipping any one of them usually means reinfection.

StageWhat happens
Find the entry pointLogs, outdated plugins, weak passwords or leaked credentials are checked to find how the attacker got in
Remove the infectionMalicious files, injected code, spam pages and rogue users are removed, or the site is restored from a known clean backup
Close the gapThe vulnerable plugin is updated or replaced, passwords are reset and hardening is applied

Restoring a backup is often the fastest route, but only if you know the backup predates the attack and you fix the original weakness. Otherwise the attacker simply comes back through the same door.

Once clean, request a review in Google Search Console if Google flagged the site, and resubmit your sitemap. Remove spam URLs from the index with redirects or by letting them return a not-found status.

How to reduce the risk of it happening again

No one can promise a site will never be attacked, but most break-ins exploit the same few weaknesses.

  • Keep software updated. Outdated plugins and themes are the most common way into WordPress sites.
  • Use fewer plugins. Every plugin is extra code that can carry a flaw.
  • Strong, unique passwords and two-factor login for every admin account.
  • Give people only the access they need, and remove accounts when staff or agencies leave.
  • Off-site backups, taken automatically and tested by restoring them.
  • A firewall and malware scanning, through your host or a security plugin.
  • Choose hosting that isolates sites, so one infected site on the account cannot spread to others.

These tasks fit naturally into a regular website maintenance routine, which is where security usually succeeds or fails.

When should you call in help?

A simple, single infection on a small site can sometimes be cleaned by a confident owner using a security plugin and a clean backup. It is worth getting help when:

  • The site keeps getting reinfected after cleaning.
  • Google has flagged the site and traffic is falling.
  • You sell online or store customer data.
  • Nobody on your team knows how the site was built.

Our website security team handles clean-ups, finds the entry point and hardens the site so the same attack does not succeed twice. For sites that need rebuilding on a leaner base afterwards, our WordPress development work covers that too. If you have seen any of the warning signs listed here, act now rather than waiting for the next warning.

Related service Website Security Website security services protect a site from common attacks and help it recover if one succeeds. Inovace Digital provides malware scanning and removal, firewall and login protection, SSL and security header setup, admin user reviews, update management and off-server backups, plus clean-up and hardening for sites that have already been hacked.

FAQ

Common questions

Why would anyone hack a small business website?

Most attacks are automated and not personal. Bots scan huge numbers of sites for known weaknesses, such as outdated plugins, then use any site they break into to host spam pages, send email, redirect visitors or spread malware. A small business site with good search rankings is useful to attackers precisely because Google already trusts it.

Will a hack damage my Google rankings?

It can. Google may show warnings beside your results, remove affected pages or rank spam pages instead of your real ones. Most sites recover once the infection is removed, the entry point is closed and a review is requested where Google flagged the site. The longer the hack stays in place, the longer recovery tends to take.

Is restoring a backup enough to fix a hacked site?

Only if the backup was taken before the attack and you also fix the weakness that let the attacker in. If you restore without updating the vulnerable plugin or changing compromised passwords, the same attack can succeed again within days. Treat a restore as one step of the clean-up, not the whole job.

Can a Shopify store be hacked?

Shopify looks after platform security and hosting, so the classic server-level hacks seen on self-hosted sites are far less common. Risks still exist: stolen staff passwords, apps with too many permissions and malicious code added to the theme. Use two-factor login for all staff, review app permissions and remove apps you no longer use.

Worried your website has been compromised?

Inovace Digital can check your site for signs of an attack, clean it up and close the gaps that let attackers in. Projects are quoted after a free audit.

Chat on WhatsApp