Website malware explained, and the common types in plain English
So, what is website malware? It is malicious code or content that someone slips into a website without permission, usually to redirect visitors, steal data, vandalise pages, or push spam. It runs on the live site, so it can affect your customers and your search rankings even when your own computer is perfectly clean.
Most small-business sites get infected through a known weakness: an out-of-date plugin or theme, a weak admin password, or a reused login. The owner often finds out late, because the changes are hidden from normal visitors or only show to people arriving from Google.
This guide explains the common types of website malware in everyday terms, then how each one is usually spotted. We will also be clear about what an external scan like ours can and cannot see, so you know which checks need a deeper, server-side look.
What website malware actually is
Website malware is unwanted code added to your site's files, database, or server so it does something the owner never intended. Unlike a virus on your laptop, it lives on the web server and targets the people who visit, which is why a clean antivirus on your own machine tells you nothing about your site.
It usually gets in through an outdated component, a stolen or guessed password, or a vulnerable plugin. Once in, attackers want one of a few things: traffic they can redirect or sell, data they can steal, or a quiet foothold they can reuse later.
The common types, in plain English
Most infections fall into a handful of recognisable patterns. Knowing the shape of each one helps you describe what you are seeing and ask the right questions.
- Defacement: your pages are visibly replaced or vandalised, often with a message or logo from whoever broke in. The most obvious type, and usually the least profitable for the attacker.
- Malicious redirects: visitors are quietly bounced to another site, often a scam or dodgy shop. The redirect is frequently cloaked, so it fires for people arriving from Google or on mobile but not when you load the site yourself.
- Card skimmers (Magecart): hidden scripts on a checkout page copy card details as customers type them. Serious for any site taking payments, and often invisible on the surface.
- SEO spam: pages or links for unrelated products (pharma, replicas, gambling) are injected to ride on your domain's reputation. You may only see them in Google's results, or in pages you never created.
- Drive-by downloads: the page tries to push malware onto the visitor's device, often through a malicious script or a fake update prompt.
- Backdoors: hidden files that let an attacker back in after a clean-up, which is why reinfection is common if the backdoor is missed.
How each type is usually detected
Different malware leaves different traces, so detection combines a few angles rather than one magic check.
Defacement and obvious redirects often show up the moment you load the site from a fresh browser or a different network. Cloaked redirects and SEO spam are sneakier: they may only appear to search engines, so checking how Google has indexed your site, and searching for pages you did not create, is often what reveals them. Card skimmers and drive-by scripts hide in the page's loaded code, so they are typically caught by inspecting scripts, by browser security warnings, or by reputation services that have already flagged the bad domains involved.
- External reputation: blocklists (such as Spamhaus, SpamCop and Barracuda) and a Google Safe Browsing reputation check (where one is configured) flag sites already known to be serving something harmful.
- Exposure checks: looking for publicly readable sensitive files (like /.git or /.env) and open directory listings that give attackers an easy way in.
- Server-side scanning: a file and database scan on the host itself, which is the only way to see backdoors and injected code that are hidden from outside visitors.
Free, instant, no account
See your site's security grade in seconds.
Free, instant, and no account needed to see your grade.
Scan my site freePlain-English A to E grade in about 10 seconds. No account needed to see it.
What our free check can and cannot see
Our free scan is an external, passive look at what your site already serves to the public. For the malware angle, that means it checks your domain and server IP against common blocklists, checks Safe Browsing reputation when an API key is configured, and looks for exposed sensitive files and open directory listings that often accompany a compromise.
Be clear on the limit: this is a reputation and exposure signal, not a file-level virus scan. We do not log in, and we do not read or scan the files on your server, so a clean external result does not prove your files are clean. A skimmer or backdoor can sit on a site that no blocklist has caught yet, which is why a confirmed infection still needs a server-side scan.
What to do if you suspect an infection
If you see signs of any of the above, treat it as urgent but workable. The free check is a fast first signal; confirming and removing an infection needs a deeper look at the server itself.
- Run a server-side malware scan through your host or a dedicated security plugin to inspect the actual files and database.
- Ask your hosting provider: many can scan, isolate, and help restore a clean backup.
- Bring in a specialist clean-up service for a confirmed skimmer or persistent reinfection, since backdoors are easy to miss.
- Once clean, update everything, reset admin passwords, and keep monitoring, because reinfection through a missed backdoor is common.
Website malware is malicious code added to your live site to redirect, steal, vandalise or spam. An external check like ours flags reputation hits and exposed files fast, but confirming and removing an infection needs a server-side scan of the actual files.