How Websites Get Hacked: Common Attacks and Prevention Basics
How do websites get hacked? Almost always by automated bots scanning thousands of sites a day for a known hole, usually an out of date plugin or a weak login. Sucuri found 39.1% of hacked CMS sites running outdated software. Seed Light keeps client sites patched, locked down and backed up.

Key Takeaways
- Nobody chose your site. Bots scan everything for a known hole and take whatever opens.
- Out of date software is the usual way in. Sucuri found 39.1 percent of hacked CMS sites were running outdated software in 2023.
- SSL does not stop hacking. It encrypts traffic. It does not lock any door.
- Ransomware is now routine. Verizon's 2026 report puts it in 48 percent of all breaches.
- An untested backup is not a backup. Restore one before you need to.
How Do Websites Get Hacked
Almost every small business site that gets hacked is hacked by software rather than by a person. A bot works through a list of known weaknesses, tries them against thousands of sites an hour, and keeps whatever it finds.
So the honest answer to how do websites get hacked is dull and useful: through something published, known and left unpatched.

The holes are not exotic. An out of date plugin with a published vulnerability, a password that appears in every leaked list, an administrator account belonging to somebody who left two years ago.
Four things account for most of it:
- Outdated plugins and themes. Published weaknesses, unpatched.
- Weak or reused passwords. Tried automatically, in bulk.
- Dormant admin accounts. Nobody is watching them.
- Abandoned software. Plugins whose authors have stopped patching.
A wordpress site hacked this way is usually running something the owner forgot was installed.
Sucuri's analysis of hacked sites during 2023 found 39.1 percent of infected CMS sites were running outdated software at the time of infection.
Updating is the single highest-value security habit available. It is also the one most often postponed, because nothing visibly goes wrong when you skip it.
Nothing visibly goes right either. That is the whole difficulty with prevention as a discipline.
The reward for doing this properly is a year in which absolutely nothing happens to your website.
Who Gets Targeted
This is the part worth internalising, because it changes how seriously a small business takes the subject.
People who believe they are too small to be a target skip the habits below. People who understand how do websites get hacked in practice do not, because they can see there is no targeting involved at all.

Being small does not make you uninteresting to an automated scan. It usually means fewer defences and nobody watching, which makes a site easier rather than less appealing.
That is the real answer to why do websites get hacked when they sell nothing valuable. The site itself is the prize: somewhere to host spam, redirect visitors, or mine a mailing list.
Your hosting account is worth stealing even if your business is not worth attacking. That distinction is the one most small business owners have never been told.
The consequences have hardened. Verizon's 2026 Data Breach Investigations Report states that 48 percent of all breaches now involve ransomware, though it also reports ransom amounts falling as more organisations decline to pay.
Declining to pay is a great deal easier when a tested backup exists. That is the practical link between the statistic and the habits below.
Small business website security is mostly this: a short list of unglamorous habits, done consistently, by somebody whose job it is.
Does SSL Stop It
No, and the confusion here causes real harm because it leaves people feeling protected by something that was never protecting them.

An SSL certificate encrypts traffic between a browser and your server. It does not patch a plugin, strengthen a password, or stop anybody logging in with credentials they guessed.
A site can be perfectly encrypted and completely compromised at the same time. The padlock describes the pipe, not the building.
Plenty of sites have been sold a certificate as a security package. It is not one, and believing otherwise is how a site goes three years without an update.
The Habits That Stop Most Of It
Three habits, in order of how much they actually matter. Not one of them is technical enough to need a specialist.
That is the good news, and it is also why nobody can be blamed for skipping them.
1. Update everything, automatically
Turn on automatic updates for core software, plugins and themes, then delete anything you are not using rather than leaving it dormant on the server.
If a plugin has not been updated by its author in a year, replace it. Abandoned software never gets a patch, however severe the weakness turns out to be.

A deactivated plugin is still a file sitting on your server, and a vulnerable file does not need to be switched on to be reached. Remove it properly rather than deactivating it.
The same applies to themes. Most sites carry two or three they have never used and will never use.
Check the update ran. Automatic updates fail silently more often than anybody expects, usually because of a conflict nobody saw.
2. Make the login hard
A unique password that exists nowhere else, two-factor authentication turned on, and as few administrator accounts as the business can function with.

Remove accounts belonging to people who no longer work with you, on the day they stop. Dormant administrator accounts are a standing invitation and nobody ever notices them going.
Three more worth doing while you are in there:
- Rename the obvious admin username. It is the first one guessed.
- Limit login attempts. It turns a fast attack into a slow one.
- Use a password manager. Unique passwords only work if they are stored somewhere.
3. Back it up and restore it
Automatic backups, stored somewhere other than the server being backed up, and restored at least once so that you know the process genuinely works.
Off the server matters. A backup sitting in the same hosting account as the site is a file whoever got in can also reach, encrypt or delete.

Most people discover their backup is unusable on the day they urgently need it.
Test a restore now, while it is merely tedious rather than catastrophic. A staging site is the obvious place, and an hour spent on this is the best hour in website security.
Keep more than one. A single nightly backup overwritten every night is no help against an infection you only notice a week later.
Where SSL Does Help
A certificate has a real job, and it is worth doing properly for several reasons that have nothing to do with intrusion.

Google announced HTTPS as a lightweight ranking signal in 2014, and Chrome has marked plain HTTP pages as Not Secure since 2018.
So a certificate prevents a warning that frightens visitors, protects data in transit, and removes a small ranking disadvantage. It does none of the work described above.
Install one, by all means. Then carry on with the actual job, because the padlock is where most small business website security advice stops and it should be where it starts.
A free certificate from your host is enough for almost every small business. Paid certificates buy warranties and organisational validation that a local service business has no use for.
If your host charges for a basic certificate, that is worth questioning. Free automated certificates have been standard for years now.
Quick Wins, Ranked By Effort
If you do nothing else at all this month, work down this list in order. The first four take an afternoon between them and remove most of the realistic risk.

| Do this | Effort | What it prevents |
|---|---|---|
| Install a certificate | Minutes, often free | The Not Secure warning |
| Turn on automatic updates | Minutes | The most common way in |
| Set up off-site backups | An hour | Permanent loss |
| Add two-factor authentication | An hour | Guessed and reused passwords |
| Remove unused plugins and accounts | An afternoon | Dormant doors |
| Test a restore | An afternoon | Discovering a broken backup too late |
Common Mistakes
Three failures account for most of the hacked sites we are asked to clean up, and none of them is sophisticated.

Putting updates off. Nothing visibly breaks when you skip one. That is exactly why it keeps being skipped, and why outdated plugins hacked sites more often than anything else on this list.
Trusting an untested backup. A backup nobody has restored is a hope with a file size.
Leaving old accounts open. The developer from three years ago still has administrator access, and nobody has thought about it since the day they finished.
None of these is a failure of knowledge. All three happen because nobody owns the job.
That is the thing to fix. Put a name against it, put an hour in the calendar each month, and almost everything above takes care of itself.
FAQs
How do small business websites get hacked?
Almost always by automated scanning rather than by a person choosing your site specifically. Bots test thousands of sites for known weaknesses, usually an out of date plugin or a weak login, and exploit whichever one they happen to find open.
Does an SSL certificate stop my site being hacked?
No, it does not. A certificate encrypts the traffic between a visitor and your server. It does not patch software, strengthen passwords or block any logins. A site can show a padlock and be completely compromised at the same time.
How often should I update my website software?
As soon as they are released, which in practice means turning automatic updates on and then leaving them on. Check occasionally that they actually ran, because automatic updates fail silently far more often than most site owners expect them to.
Do I need a security plugin?
It helps, and it belongs fourth on the list rather than first. Updates, strong logins and tested backups prevent far more than any security plugin will on its own. A firewall adds a useful extra layer on top of those three.
Why does my website say Not Secure?
Because it has no valid SSL certificate, or because it loads some of its content over plain HTTP. Chrome has marked such pages that way since 2018. Your hosting provider can usually install a free certificate in a few minutes.
Conclusion
Websites get hacked by software looking for a known hole, so closing the known holes is most of the work.
Update automatically, delete what you do not use, make the login hard, keep backups off the server, and restore one before you need to.
See how we approach website maintenance, or get in touch and we will check what your site is currently running.









