Skip to content
Website Security

Website Malware: Signs, Removal Steps & Scanners

How to tell if your website has malware, how to clean it step by step, how to get off Google’s warning lists and how to prevent reinfection.

Hero: padlock and shield over a browser address bar showing HTTPS, for “Website Malware”
Quick answer

Website malware is malicious code hidden in your site’s files or database — often spam links, redirects, fake login pages or scripts that infect visitors. Signs include strange redirects, unknown admin users, spam pages in Google and browser warnings. To fix it: take a backup, scan with a malware or vulnerability scanner, restore a clean backup or remove infected code, update everything, change all passwords and request a review in Google Search Console.

Discovering malware on your website is stressful, but most infections can be cleaned with a calm, methodical process. Follow the steps below in order.

Signs your website has malware

Security dashboard screenshot illustrating “Signs your website has malware”

Types of website malware

TypeWhat it does
SEO spamInjects hidden links or thousands of spam pages to rank other sites
Malicious redirectsSends visitors to scam or malware sites
BackdoorsHidden scripts that let attackers return even after cleanup
Phishing kitsFake login pages for banks or services hosted on your domain
Card skimmersSteal payment details on checkout pages
CryptominersUse visitors’ or your server’s CPU to mine cryptocurrency

How to remove malware from a website

01

Back up the infected site

Take a full copy of files and database before changing anything, for evidence and safety.

02

Scan

Use your host’s scanner, a security plugin or a remote scanner such as Sucuri SiteCheck to locate infected files and URLs.

03

Restore or clean

The fastest fix is restoring a backup from before the infection. Otherwise replace CMS core files with fresh copies, reinstall plugins and themes from official sources and remove injected code from the database.

04

Find and remove backdoors

Look for recently modified PHP files, files in upload folders and unknown admin users.

05

Change every password

CMS users, hosting, database, SFTP, email and API keys.

06

Update and harden

Update all software, remove unused plugins, add a firewall and enable two-factor authentication.

07

Request a review

In Google Search Console, check Security Issues and request a review once the site is clean.

Important: If your site handles payments or personal data and you suspect a breach, you may have legal obligations to notify users or regulators. Seek professional help quickly.

Website vulnerability scanners

A vulnerability scanner checks your site for known weaknesses — outdated software, risky configurations and exposed files — before attackers find them. Options include WPScan (WordPress), OWASP ZAP (open-source web app scanner), host-provided scanners and the security features in plugins such as Wordfence or Patchstack. Scan after major changes and at least monthly.

How to prevent reinfection

Use our website security checklist to close remaining gaps.

Keep learning

More in Website Security

Website Security Checklist

A practical, printable website security checklist covering accounts, updates, hosting, backups, HTTPS, monitoring and incident response.

Website Firewall (WAF)

What a web application firewall does, cloud vs plugin vs server firewalls, and how to choose and configure one for…

DDoS Protection

What DDoS attacks are, the main types, and how CDNs, firewalls and hosting choices protect your website from going offline.

Latest articles

Related Website Security articles

FAQ

Website Malware questions, answered

Short, honest answers to the questions people ask most about this topic.

How do I check my website for malware for free?

Use a free remote scanner such as Sucuri SiteCheck, check Google Search Console’s Security Issues report, and run your host’s or a security plugin’s scanner. Remote scanners only see public pages, so a server-side scan is more thorough.

Yes. Some malware redirects visitors to malicious sites or loads scripts that try to install malware or steal data, which is why browsers and Google warn users away from infected sites.

A simple infection with a clean backup can be fixed within hours. Complex infections with backdoors can take a day or more, and Google’s review of security warnings usually takes from a day to a few days.

Rankings can drop while Google shows warnings or indexes spam pages. After cleaning the site, removing spam URLs and requesting a review, rankings usually recover over time.

Next step

Keep building your skills

Explore the rest of our Website Security guides, or follow the beginner path step by step.