Skip to content

How to protect a website from hackers

By Ash, Founder, HosteazePublished 2 min read

Most small business sites are hacked through out-of-date plugins, reused passwords or abandoned admin accounts, not clever targeted attacks. Keep your software updated, protect every login with a passkey or two-step verification, remove what you don't use, keep off-site backups and use HTTPS. A firewall then adds a useful extra layer.

A heavy chain and brass padlock across a pair of weathered green wooden doors, simple security that stops most intruders.
Credit: Life-Of-Pix via Pixabay

Picture the typical website hack. It isn't a hooded genius picking your site out of millions. It's a bot trying the same old plugin flaw on every site it can find, or logging in with a password leaked from somewhere else. That's good news, because those attacks are stopped by dull, reliable habits rather than expensive tools.

How do most small business websites get hacked?

The NCSC says one in two small businesses suffers a cyber incident every year. Most of those causes are fixable this afternoon.

What should I do first?

Work through these in order. The first three stop the majority of attacks.

What do security tools add?

LayerWhat it protects againstWho usually provides it
Web application firewallMalicious requests such as SQL injectionYour host, a CDN or a plugin
Login protectionPassword-guessing botsA security plugin or your host
Malware scanningInfected files going unnoticedYour host or a security plugin
DDoS protectionFloods of trafficYour host's network or a CDN
Off-site backupsEverything else going wrongYou, a backup plugin or your host

A web application firewall is the most useful of these for a typical WordPress site, because it blocks attacks on flaws you haven't patched yet.

How do I keep it secure over time?

Put a ten-minute check in your diary each month. Log in, confirm updates have run, look at the user list for anyone unfamiliar, and check the last backup date. Hacked sites are far more often forgotten sites than cleverly targeted ones.

If the worst happens, follow what to do when a WordPress site is hacked. Act quickly if personal data might be involved: the ICO says a reportable personal data breach must be reported without undue delay and within 72 hours of discovering it.

Frequently asked questions

Is my small website really a target?

Yes, though rarely personally. Most attacks are automated bots scanning thousands of sites for known weaknesses. The NCSC says one in two small businesses suffers a cyber incident each year, so being small isn't protection.

Do I need a security plugin for WordPress?

It helps, especially for login protection and malware scanning, but it can't fix outdated plugins or weak passwords. Treat it as a layer on top of the basics, and choose one that's actively maintained.

What should I do if my site has already been hacked?

Don't just delete the obvious bad files. Change every password, restore a clean backup from before the hack if you have one, update everything, and tell your host. If customer data may have been exposed, check whether you need to report it to the ICO, which has to happen within 72 hours.

Sources

  1. NCSC, Small organisations guide to cyber security
  2. NCSC, Secure your important online accounts
  3. WordPress Developer Resources, Hardening WordPress
  4. WordPress.org, Plugin and themes auto-updates
  5. ICO, 72 hours - how to respond to a personal data breach
A brass padlock lying open on a black background, its shackle unlocked, like a website connection without HTTPS.QuestionWhy does my website say "Not secure"?Browsers show Not secure when a page loads over plain http:// instead of https://. That usually means there's no SSL certificate, the certificate has expired or doesn't cover that version of your address, or the site isn't redirecting visitors to the secure version. Most fixes take minutes in your hosting control panel.Hosting and security · 25 November 2026A Closed sign hanging inside a shop's glass door, the shop still there but not serving customers right now.QuestionWhat is a 503 Service Unavailable error?A 503 Service Unavailable error means the server is working but can't handle the request right now. On small business sites it's usually a WordPress update stuck in maintenance mode, the hosting account hitting its resource limits, or a traffic spike. Unlike a 500 error, it's meant to be temporary.Hosting and security · 24 November 2026A rusty bicycle gear cluster with a slipped, broken chain, something failing inside the machine rather than out of sight.QuestionWhat is a 500 internal server error and how do I fix it?A 500 internal server error is the server's way of saying something went wrong but it can't say what. On small business sites the usual causes are a faulty plugin or theme, a broken .htaccess file, PHP running out of memory or an incompatible PHP version. The error log almost always names the real problem.Hosting and security · 22 November 2026Rows of large cooling fans and pipework at a data centre, part of the unseen kit a hosting company keeps running.QuestionWhat does a hosting company actually do?A hosting company rents you space on servers it keeps running around the clock in a data centre. It handles the hardware, power, network, server software, security patches and usually backups, email and SSL certificates, plus support when something breaks. Your website's content, plugins and passwords normally remain your responsibility.Hosting and security · 20 November 2026A car speedometer with the needle resting near zero, how a site on struggling hosting can feel to visitors.QuestionSigns you need to switch web hostsIt's time to switch web hosts when your site keeps going down, the server is slow to respond even after you've optimised the site, the host runs out-of-date software, support takes days to reply, or renewal prices jump without warning. Measure first, so you're sure the problem is the host and not your site.Hosting and security · 19 November 2026

Hosting with security built in

See what comes with every Hosteaze hosting plan.

See hosting plans