Security

How can I tell if my website has been hacked?

By Purlock · Updated 3 min read

The short answer

Many hacks hide from the site owner. Look for strange pages from your site in Google results (search site:yourdomain.com), visitors saying they were sent somewhere else, a sudden drop in search traffic, a warning in Google Search Console, or scripts on your pages you didn't add. Purlock's free website malware check reads your page as a visitor, as a search engine and as a phone arriving from Google, and compares them, which is how these hidden hacks show up.

Key points

  • If your site looks fine to you, that doesn't mean it's clean.
  • Common hacks show spam only to search engines, or redirect only phone visitors from Google.
  • An outdated plugin or theme is the usual way in.
  • After cleaning up, watch for new scripts: that's how most attacks return.

What are the signs a website has been hacked?

  • Google shows pages from your site you never made, often in Japanese, or about pharmacies, casinos or loans.
  • Visitors, especially on phones, get sent to another site, while you see yours normally.
  • Google Search Console shows a security issue or manual action.
  • Browsers or antivirus show a "deceptive site" warning.
  • New admin users, files or scheduled tasks you didn't create.
  • Scripts loading from domains you don't recognise.
  • Your host suspends the account for sending spam or using too much CPU.

Website malware check

Was your site hacked? Find hidden spam, injected scripts and sneaky redirects.

Try it free

Why can't I see the hack on my own site?

Attackers want the site to stay hacked for as long as possible, so they hide it from the person most likely to fix it. A common trick is cloaking: showing spam only when the visitor is Google's crawler, so rankings fill with spam pages while the owner sees nothing. Another is a redirect that only fires for phones arriving from a Google search, and often only once per visitor.

That's why a useful check reads the page several ways and compares them, rather than looking once like you would.

Common website hacks and who sees them
HackWho sees itWhat it does
SEO spam (Japanese keyword, pharma hack)Search enginesFills your rankings with spam pages
Conditional redirectPhones from Google searchSends visitors to scams or ads
Hidden linksSearch enginesSells links from your site
Injected scriptEveryone, invisiblyMines crypto or steals form data
Phishing pagesPeople sent a direct linkHosts a fake login on your domain

How do I check if my website is hacked?

  1. Search Google for site:yourdomain.com and look for pages you didn't create.
  2. Run the website malware check, which compares what a visitor, a search engine and a phone from Google receive.
  3. Open Google Search Console and look under Security issues.
  4. Check the link safety checker to see if your domain is on a phishing list.
  5. Review admin users and recently changed files in your hosting panel.

What should I do if my website was hacked?

  1. Change every password: hosting, admin, database, FTP and the email linked to them. Turn on two step sign in.
  2. Restore a clean backup from before the hack, if you have one.
  3. Update the platform, theme and every plugin. Delete ones you don't use: an old plugin is the usual way in.
  4. Remove unknown admin users, files and scheduled tasks. Your host can often help.
  5. Request a review in Google Search Console once it's clean.
  6. Monitor for new outside scripts, so you know the same day if it comes back.

More questions

Can a website be hacked without me knowing?
Yes, and most are. Hacks are designed to stay hidden from owners, sometimes for months.
Does an outside scan find everything?
No. It sees what visitors and search engines see. A backdoor file that isn't showing anything yet needs a server side scan or your host's help.
Is WordPress more likely to be hacked?
WordPress itself is well maintained. Outdated plugins and themes, and weak admin passwords, are what get exploited.