1. Home
  2. Guides
  3. Website hacked or redirecting to spam: how to fix it

Guide

Website hacked or redirecting to spam: how to fix it

If your site sends visitors to spam, shows pages you didn't create or gets flagged by Google, it has probably been hacked. Act quickly: the longer it stays infected, the more visitors and rankings you lose.

Signs your site is hacked

  • Visitors are redirected to gambling, pharmacy or scam sites, often only on mobile or from Google
  • Google shows strange titles or foreign-language pages for your site
  • Chrome shows a red "dangerous site" warning
  • Search Console sends a security issue alert
  • Your host suspends the account

What to do

  1. Change passwords for hosting, the website admin, FTP and email.
  2. Take a backup of the infected site for reference, then restore a clean backup from before the hack if you have one.
  3. Update WordPress, themes and plugins, and delete any you don't use.
  4. Scan with a security plugin or ask your host to scan. Remove unknown admin users.
  5. In Search Console, check Security issues, then request a review once it's clean.
  6. Remove spam pages Google indexed with the Removals tool, and check your sitemap.

If you're not technical, this is a job for your developer or host. See flagged as dangerous.

Prevent it

  • Keep everything updated and use strong, unique passwords with two-factor login
  • Daily off-site backups
  • Quality hosting with malware scanning

See WordPress security and maintenance plans.

Want this done for you? See our website design packages, or get a free audit.

Find out where you rank today.

Send your website and the suburbs you service. You get a free video audit within two business days.

Get my free audit