How Do I Protect My Website From Hackers?
Practical security steps for small business websites: updates, passwords, two-factor login, backups, SSL and choosing secure hosting.

Short answer: keep all software updated, use strong unique passwords with two-factor authentication, remove plugins and accounts you do not use, keep automatic off-site backups, and choose hosting that handles security for you. The most effective step of all is reducing what can be attacked: a static website with no database or login page removes most of the ways small business sites get hacked.
Most small business owners think hackers would never bother with them. "Why would anyone target a dog groomer in Swindon?" The uncomfortable truth is that nobody is targeting you personally. Automated bots scan millions of websites around the clock, looking for known weaknesses: an outdated plugin, a guessable password, an exposed login page. If your site has the weakness, the bot finds it. It is less like a burglar choosing your house and more like someone trying every door handle on the street.
What hackers actually want from a small business site
- Hosting for spam. Thousands of hidden pages selling counterfeit goods or pharmaceuticals, using your domain's reputation to rank.
- Redirects. Visitors from Google get bounced to scam or adult sites, often only on mobile so you never notice from your desktop.
- Malware distribution. Your site serves malicious code to visitors.
- Email sending. Your server is used to blast spam, which can get your domain's email blacklisted.
- Data. Contact form submissions, customer details or login credentials.
- Cryptomining or botnets. Using your server's resources for someone else's gain.
The consequences are real: Google may show a "This site may be hacked" warning or a red full-screen browser alert, rankings can collapse, your hosting may be suspended, and you could have data protection obligations if personal data is exposed.
How small business sites actually get hacked
In our experience, the vast majority of incidents come from a handful of causes:
| Cause | How it happens | The fix |
|---|---|---|
| Outdated plugins, themes or CMS core | A known vulnerability is published; bots exploit every unpatched site within days | Update promptly, remove what you do not use |
| Weak or reused passwords | Credential stuffing using passwords leaked from other sites | Unique passwords, a password manager, two-factor authentication |
| Abandoned plugins | The developer stopped maintaining it; holes never get fixed | Check last update dates; replace or remove |
| Nulled (pirated) themes and plugins | "Free" premium software with backdoors pre-installed | Never use them, ever |
| Old admin accounts | An ex-employee or former developer still has access | Audit users every few months |
| Insecure hosting | Shared servers with poor isolation, outdated server software | Reputable, managed hosting |
Notice that most of this is maintenance, not sophisticated hacking. That is good news: it is preventable.
The protection checklist, in order of impact
1. Reduce the attack surface
Every plugin, theme, user account and login page is a possible door. The safest door is one that does not exist. Delete deactivated plugins and unused themes rather than leaving them installed. If you do not need a blog, comments or user accounts, do not have them. This is why static websites are so robust: they are plain files served to visitors, with no database to inject into and no admin login on the live site to brute force. See static sites vs WordPress.
2. Update everything, promptly
If you run WordPress or a similar CMS, updates to the core, plugins and themes are your most important security task. Turn on automatic updates for minor and security releases. Check weekly for the rest. Test major updates on a staging copy if your site is complex.
3. Lock down logins
- Use a password manager and a long, unique password for every account: website admin, hosting, domain registrar, email.
- Turn on two-factor authentication everywhere it is offered, especially your domain registrar and hosting. If someone takes your domain, they take everything.
- Limit login attempts and consider changing the default login URL.
- Give each person their own account with the minimum permissions they need. Never share one admin login.
4. Back up properly
Backups are your safety net. A good backup is automatic, stored off the server (so a hacked or failed server does not take the backups with it), kept for several weeks, and actually tested. A backup you have never restored is a hope, not a plan. More in how to back up your website.
5. Use HTTPS and security headers
An SSL certificate encrypts data between visitor and site. It is free on most good hosts and non-negotiable. Beyond that, security headers such as Content-Security-Policy and Strict-Transport-Security tell browsers to block certain attacks. These are set at the server level and a good provider configures them for you.
6. Put a firewall in front
A web application firewall (WAF) filters malicious traffic before it reaches your site. Services such as Cloudflare offer protection at the network edge, blocking many automated attacks and absorbing traffic floods. Some hosts include this; plugins offer an application-level version.
7. Monitor
Set up Google Search Console, which will alert you to security issues Google detects. Use uptime monitoring so you know quickly if the site goes down. Occasionally search site:yourdomain.com on Google: unexpected pages in other languages or selling strange products are a classic sign of a hack.
Hacked, or worried you might be?
Our Website Rescue service cleans up and secures compromised sites, or we can move you to a fast, static site on our plans where most of these risks simply do not exist.
A worked example
Picture a small beauty salon in Perth, Western Australia, running WordPress with 23 plugins, several inactive, one of them a slider not updated in years. The owner's nephew built it and still has an admin account. Nobody has logged in for months.
One morning a client messages: "Your website sent me to a weird gambling site." On desktop the owner sees nothing wrong. On her phone, from Google, the redirect fires. A bot exploited the abandoned slider plugin, injected code that redirects only mobile visitors arriving from search (precisely to avoid the owner noticing) and created a hidden admin account. Google flags the site within days.
Clean-up means restoring from a clean backup (if one exists from before the infection), removing the vulnerable plugin, resetting every password, deleting unknown users, scanning for leftover backdoors, and requesting a review in Search Console. Prevention would have taken twenty minutes: delete the unused plugins, remove the old account, turn on updates and two-factor login. Illustrative, but painfully common.
Mistakes to avoid
- "We are too small to be targeted." Bots do not care about size.
- Deactivating plugins instead of deleting them. Inactive code can still be vulnerable.
- Backups stored only on the same server. When the server goes, so do they.
- Using the same password for hosting, email and admin. One leak opens everything.
- Ignoring the domain registrar account. It is the master key to your website and email. Protect it with two-factor authentication.
- Installing "security" plugins and thinking you are done. They help, but they cannot fix neglected updates or weak passwords.
- Paying a stranger who emails saying "your site has vulnerabilities". Often a scam. Verify independently.
Our take
We think most small business websites are far more complicated than they need to be, and that complexity is the root of most security problems. A brochure site for a plumber does not need a database, twenty plugins and a public login page. That is why every SiteDrum site is a fast static build served from Cloudflare's edge network, with SSL, security and updates handled for you. There is simply very little for a bot to attack.
Honest caveat: if you genuinely need dynamic features, such as member logins, a big online shop or user-generated content, you need a platform that supports them, and you need someone committed to maintaining it. Static is not the right answer for everything. But for the classic small business site, removing the moving parts is the strongest security decision you can make.
Quick checklist
- Delete unused plugins, themes and user accounts
- Turn on automatic security updates
- Unique passwords in a password manager
- Two-factor authentication on admin, hosting, registrar and email
- Automatic off-site backups, tested at least once
- HTTPS everywhere with security headers
- Firewall or edge protection in place
- Search Console alerts and uptime monitoring on
The bottom line
Website security for a small business is mostly good housekeeping: fewer moving parts, prompt updates, strong logins and reliable backups. Do those consistently, or choose a setup that does them for you, and you close the doors the bots are trying every day. If something has already gone wrong, see our guide to fixing a hacked website.
Frequently asked questions
Why would hackers target my small business website?
Usually they are not targeting you specifically. Automated bots scan huge numbers of sites for known weaknesses, such as outdated plugins or weak passwords. Any vulnerable site gets used, often for spam pages, redirects or sending junk email.
Are static websites more secure than WordPress?
Generally yes, for typical small business sites. Static sites have no database and no public admin login on the live site, which removes the most common attack routes. WordPress can be secured well, but it needs consistent updates and careful plugin management.
How do I know if my website has been hacked?
Warning signs include browser or Google warnings, visitors being redirected to strange sites (often only on mobile), unfamiliar pages appearing when you search site:yourdomain.com, unknown admin users, or alerts in Google Search Console. A sudden traffic drop can also be a clue.
Do I need a security plugin?
If you run WordPress, a reputable security plugin with a firewall and login protection is a sensible layer. It is not a substitute for updates, strong passwords, two-factor authentication and backups, which matter more.
How often should I back up my website?
As often as it changes. A site updated daily needs daily backups; a mostly static brochure site may be fine weekly, with a backup before any change. Store backups off the server, keep several weeks of history and test a restore at least once.
Want a website that brings you customers?
Tell us what you do on WhatsApp and we will send a fixed quote and a free mockup.
Get my free mockupRelated guides
Our products
Website design near you
Website design in LondonWebsite design in New YorkWebsite design in TorontoWebsite design in MumbaiWebsite design in BaselWebsite design in AucklandWebsite design in MalmöWebsite design in HoustonWebsite design in UtrechtWebsite design in SouthamptonAll cities →
SiteDrum home · All guides · Sitemap · Contact us
More tech guides
- What Is Website Hosting? A Plain-English Explanation
- Can You Have a Website Without Hosting?
- Do I Need a Cookie Banner on My Website?
- WordPress vs Website Builders: Which Is Better for a Small Business?
- Do I Need a Domain Name for My Website?
- What Is the Difference Between a Domain, Hosting and a Website?
- Do I Need an SSL Certificate for My Website?
- How Do I Get a Business Email Address With My Domain?