Security & errors

My website was hacked, or redirects to spam

Visitors land on a spam or scam site, Google shows strange pages under your domain (often in Japanese or about pills or casinos), Google labels your site "This site may be hacked", or your host suspends the account.

My website was hacked, or redirects to spam
Quick answer

Act quickly: change every password (hosting, website admin, FTP, database), back up the site as it is, then clean or restore it from a backup made before the hack. Update or remove outdated plugins and themes, which is how most small business sites get hacked. Finally, request a review in Google Search Console so warnings are removed.

Common causes

Outdated plugins or themes

Most small business site hacks come through a plugin or theme with a known security hole that was never updated.

Weak or reused passwords

Admin, hosting, or FTP passwords that were guessed or leaked in another breach.

Pirated ("nulled") themes or plugins

Free copies of paid themes often contain hidden backdoors.

Abandoned site software

An old CMS version, or a forgotten test copy of the site on the same hosting account.

How to fix it, step by step

  1. 1

    Confirm what's happening

    Search site:yourdomain.com for spam pages, try the site on a phone with mobile data (some hacks only redirect phones or visitors from Google), and run a free scan such as Sucuri SiteCheck.

  2. 2

    Change every password

    Hosting account, website admin users, FTP/SFTP, and the database. Turn on two-factor login wherever it's offered.

  3. 3

    Back up the current site

    Save a copy as it is now, so nothing is lost and the hack can be investigated.

  4. 4

    Remove unknown admin users

    Attackers often add their own admin accounts to get back in.

  5. 5

    Clean or restore

    Restore from a backup made before the hack, or have the infected files cleaned. Then update the CMS, themes, and plugins, and delete any you don't use.

  6. 6

    Request a review in Search Console

    Check Security & Manual Actions > Security issues. Once the site is clean, request a review so Google removes the warning.

When to call a technician

Hacked sites often get reinfected because a backdoor was left behind. We clean the site, close the hole that let attackers in, remove spam pages from Google, and set up updates, backups, and monitoring so it doesn't happen again.

On-site support across Orange County · see our website maintenance, website design and SEO services.

Frequently asked questions

Why does the redirect only happen on my phone?

Many hacks only redirect mobile visitors or people arriving from Google, so the owner, visiting directly on a computer, doesn't notice. Test on a phone using mobile data.

Will Google blacklist my website?

Google may show a warning in results or in Chrome. The warning is removed after you clean the site and request a review in Search Console.

How do I stop it happening again?

Keep everything updated, remove unused plugins, use strong unique passwords with two-factor login, and keep automatic off-site backups.

Related website problems

All website and SEO troubleshooting guides