Is my website hacked?

Hacked sites often look fine to their owners. The spam, the redirects to dodgy sites and the hidden links only show for Googlebot, for visitors arriving from a Google search, or on phones. This loads the site four different ways, compares them, and checks the page and sitemap for the usual signs of injected spam and malware.

The signs of a hacked website

Redirects for search visitors

The site loads fine when typed in, but people arriving from Google are sent to a scam, pharmacy or adult site.

Spam in Google results

Search results for the domain show pages about casinos, pills or designer goods, or titles in Japanese.

Hidden links

Links to unrelated sites hidden in the page with CSS, so visitors never see them but search engines do.

Injected scripts

Obfuscated JavaScript in the header or footer, or scripts loading from odd domains, often added to every page.

Google warnings

"This site may be hacked" in search results, or a red "Deceptive site ahead" screen in Chrome.

Things you didn't do

New admin users, files with random names in uploads folders, a sudden traffic drop or the host suspending the account.

Why hacked sites look fine to their owners

Most website hacks are about making money from the site's reputation, not breaking it. If the owner noticed, they'd fix it, so the injected code checks who's visiting. Logged-in admins and people typing the address get the normal site. Googlebot gets pages stuffed with pharmacy or casino links. Visitors arriving from a Google search get redirected to a scam. That's why this checker loads the page as Googlebot, as a visitor from Google and on a phone, and compares what comes back.

WordPress sites are hit most often, usually through an outdated plugin or theme. The plugin checker shows which plugins on a site have known vulnerabilities.

Questions agencies ask

Check how the site looks to Google, not just to you. Hacked sites often show spam or redirects only to Googlebot or to visitors coming from Google search. This checker loads your homepage four ways and compares them, then looks for hidden links, injected scripts, crypto miners and spam pages in the sitemap. Also check Google's Safe Browsing status and Search Console's Security Issues report.

FOR AGENCIES

Client site been hacked?

I clean up hacked WordPress, WooCommerce and Laravel sites for agencies: find how they got in, remove the backdoors as well as the spam, close the hole, and get the site off Google's warning list.

  • White-label, under your brand, or alongside your team
  • Laravel, WordPress, WooCommerce, integrations and tracking
  • Inherited and half-finished sites taken over and stabilised
  • UK based, straight to the developer, no account managers

Related free tools