Small business owner working on a laptop while securing a WordPress website

How to Secure Your WordPress Website: A Practical Guide for Small Businesses

I still remember the first time a client rang me in a panic about their website. It was a Monday, obviously. Mondays are when these things always seem to happen. She ran a small florist shop, nothing fancy, just a WordPress site with an online order form. She opened it that morning to check the weekend orders, and her homepage was gone. In its place? A page selling fake designer watches. She thought she was dreaming. She was not. This guide explains how to secure your WordPress website before that happens to you, in plain language, and in the order that actually matters.

Here is the thing most people get wrong. They assume their site is too small to matter. Nobody picks your site out by hand. Bots do the picking, and they do not care whether you sell flowers or run a law firm. They care whether your door is unlocked. Most hacked sites I have seen were not broken into with clever tricks, just an out of date plugin, a reused password, or a backup nobody ever tested. The good news? Almost all of that is preventable, and most of it costs nothing.

The short answer

Short on time? Fair enough. If you have half an hour today, do these five things first. They block the routes behind most small business hacks.

  1. Update WordPress core, every plugin, and every theme. Then delete the plugins and themes you do not use.
  2. Turn on two factor authentication for every administrator account.
  3. Look through your administrator accounts and delete any you do not recognise.
  4. Confirm you have a recent backup stored somewhere other than your web server.
  5. Install one reputable security plugin and switch on its malware scan and login protection.

Done? Good. The rest of this guide explains why each step matters, what comes next, and which popular tips you can safely ignore. Yes, some of them are myths. We will get to those.

Why WordPress sites get hacked in 2026

WordPress runs more than 43 percent of all websites. That scale is exactly why attackers love it. One flaw in a popular plugin can open the door to hundreds of thousands of sites at once, and the people writing the attacks know it.

Patchstack counted 11,334 new vulnerabilities across the WordPress ecosystem in 2025. That is a rise of 42 percent on the year before. Now, here is the split that surprises most people. Plugins accounted for 91 percent of those flaws. Themes took 9 percent. WordPress core itself? Just six, and every one of them was low priority. So when someone tells you WordPress is insecure, they are usually blaming the wrong thing. The core is solid. It is everything bolted on around it that causes trouble.

Two figures from that research stick in my mind. First, nearly half of the flaws, 46 percent, had no patch from the developer when they became public. Updating alone would not have saved you, because there was nothing to update to yet. Second, the most heavily exploited flaws went from disclosure to mass attacks in a median of about five hours. Once a flaw becomes public, attackers start scanning millions of sites for it the same day.

And 2026 has already given us examples. In July, a critical flaw in WordPress core called wp2shell let attackers run code on sites using WordPress 6.9 and 7.0, without even logging in. Then in October, critical flaws turned up in PHP itself, the language WordPress runs on, and no WordPress update could fix that one. The same month, attackers used stolen remote management keys to plant backdoor plugins, and malicious apps went after store checkouts to steal payment details.

None of this means WordPress is unsafe. It means the danger lives in the plugins, the logins, the server, and the habits around the site. Fix those, and your site turns into a hard target. Attackers run automated tools, and automated tools always move on to easier sites. Make yours the one they skip.

Step 1: Keep everything updated, and delete what you do not use

Old plugins are still the most common way into a WordPress site. Here is why. The moment a developer publishes a fix, attackers can compare the old code with the new code and spot exactly what changed. That tells them where the hole is. Then they start probing every site that has not updated yet. That window is often measured in days. Sometimes hours. You really do not want to be in it.

Update WordPress core, plugins, and themes at least once a week. Security updates? Same day, no exceptions. You can switch on automatic updates for well maintained plugins under Plugins in your dashboard, but test major updates on a staging copy first if your site takes orders. A broken update on a live store will cost you far more than a delayed one ever would.

Now the part people skip: deleting. Switching a plugin off does not delete it. Its files stay on the server, and attackers can still go after them. Same story with themes you stopped using two years ago. Get rid of them. Remove every plugin and theme you are not actively using, and keep a single default WordPress theme around just in case you need a fallback one day. And if a plugin’s last update was two years ago, or WordPress.org has closed it down, find a replacement. It will not get fixes, no matter how well it still seems to work. I have seen sites running plugins abandoned since 2021. Do not be that site.

One more check, and this one catches people out. Paid plugins only show updates while their licence is active. If a premium plugin licence quietly expired six months ago, you have been running an old version all this time without realising it. Renew it, or swap the plugin for one that is actually maintained.

Step 2: Protect your logins

Your login page gets hammered by automated password guessing around the clock. All day, all night, it never stops. Attackers also try passwords stolen in breaches on other websites. That is why reusing a password is so dangerous. If your WordPress password is the same one you use for your email, or your hosting account, or that shopping site from 2019, change it today. Your WordPress admin password should exist nowhere else. Keep it in a password manager, not in your head, and definitely not in a spreadsheet. Yes, I have seen that spreadsheet.

Make it long. Twelve characters is the minimum. Sixteen is better. A password manager can generate one for you and remember it, so there is no excuse for sticking with the same short password everywhere.

Then turn on two factor authentication. Every administrator, every editor, every shop manager. No exceptions. With two factor login, a stolen password on its own gets the attacker nowhere. They also need a code from your phone, and that code changes every thirty seconds. An authenticator app or a passkey beats a text message code, by the way. Most good security plugins include two factor login for free, and it takes about two minutes to set up per person. Two minutes. There is genuinely no reason to put it off.

Oh, and never use “admin” as a username. Bots try it first, every single time. Also limit failed login attempts, so an address gets locked out after five wrong tries. Both settings live in any decent security plugin.

Person using two-factor authentication on a smartphone next to a laptop

Step 3: Give people the smallest role that works

An administrator account opens every door on the site. Installing plugins, editing code, creating new users, the lot. If an attacker takes one over, they almost always create a second hidden admin account for themselves, so they can stroll back in later. Fewer administrators means a smaller target. Simple as that.

So go through the user list every month. Delete accounts belonging to people who no longer work with you. Former developers, old agencies, staff who left last year. This is the step almost everyone forgets, and honestly, it is how a surprising number of sites get broken into months after a working relationship has ended. Somebody leaves, nobody removes their login, and one day that login gets used.

Match the role to the job. Someone who only writes posts needs an Author account. Someone who publishes needs Editor. Shop staff need Shop Manager, not the keys to everything. Do your daily writing from an Editor account instead of your admin one, because some attacks this year waited until an administrator was signed in and browsing, then quietly used that session to install a plugin.

Two settings deserve a look while you are in there. Leave public registration switched off unless your site genuinely needs it, like a shop, a course, or a membership area. And make sure new accounts default to Subscriber. Never Administrator. That one catches people out more than you would think.

Finally, audit application passwords and remote access keys. Backup tools and dashboards often connect through keys that never expire. Go through them in each user’s profile and revoke anything you do not recognise. Stolen remote keys were how attackers got in during the October 2026 backdoor attacks. This is the step that would have stopped them.

Step 4: Only install software from sources you trust

This year brought a nasty twist. A handful of well known plugins pushed out malicious code through their ordinary update process. Let that sink in. The update itself was the attack. You cannot rule that out completely, nobody can, but you can shrink the risk a lot.

Get plugins and themes from WordPress.org or directly from the developer. Free copies of paid plugins from random download sites are a common trap: they frequently hide malicious code inside, and they never receive security updates. If a plugin is too expensive, find a free alternative from a reputable developer instead.

Before you install anything, look at its track record. Recent updates? A solid number of active installs? A developer who actually answers support questions? No pattern of leaving flaws unfixed? A plugin with 100,000 installs and regular updates is a far safer bet than a brand new plugin from a developer nobody has heard of, including the quickly built AI generated plugins popping up everywhere right now.

And if a plugin shows up that nobody on your team remembers installing, investigate it. Do not just shrug and move on. Attackers often disguise malware as a security plugin or a caching plugin. Treat any unfamiliar entry as a problem until you can prove otherwise.

One last thing. Turn off the built-in file editor. It lets anyone with an admin login edit PHP code straight from the browser, which is the first tool an attacker reaches for once they are inside. Add this line to your wp-config.php file, or use a security plugin setting:

define( 'DISALLOW_FILE_EDIT', true );

Step 5: Close the folders attackers use

Some parts of your site never need to run code from the web. Closing them off removes easy entry points, and it costs you nothing.

Start with your uploads folder. Stop PHP code from executing inside it, since that folder should hold images and documents only. A malicious script smuggled in there would then have no way to run. Most security plugins can add this rule for you in a couple of clicks, and it is one of the highest value changes on this whole list.

Then protect your wp-config.php file. That little file holds your database password, so it deserves some respect. File permissions should be 644 for files, 755 for folders, and 600 or 640 for wp-config.php. Never 777. If you are not sure what any of that means, ask your host to set them for you. A good host will do it without fuss.

Turn off XML-RPC unless you use Jetpack or a mobile app that actually needs it. It is an old remote access system, and these days it is mostly used for password guessing attacks. Turn off pingbacks and trackbacks too, under Settings, then Discussion. And switch off directory browsing so visitors cannot list the files sitting in your folders. If you want the full technical detail behind any of these settings, WordPress publishes its own official hardening guide.

Step 6: Put a firewall in front of your site and watch what happens

Here is a number worth remembering. 46 percent of vulnerabilities have no patch when they are disclosed. None. Zero. So what protects you in the gap between a flaw going public and a fix arriving? That is exactly what a firewall is for.

A web application firewall, a WAF if you like acronyms, sits in front of WordPress and filters out malicious requests before they ever get near your site. The good ones do something extra called virtual patching. Sounds fancy, but the idea is simple. Say a flaw is announced in a plugin you use, and the developer needs three days to fix it. A firewall with virtual patching blocks attacks aimed at that flaw right now, today, while you wait. That is your main defence against the five hour exploitation window I mentioned earlier. Five hours from disclosure to mass attack. You want something standing in the way during those five hours.

So where do you get one? A few places. Cloudflare. Your hosting company. A dedicated security service. Cloudflare has a free plan, and honestly, for most small business sites the free plan covers the basics fine: bot protection, a firewall, the works. One thing worth knowing, a cloud firewall beats a plugin firewall. Why? Because it stops attacks before they touch your server at all. A plugin firewall only kicks in after the request has already arrived. If slow load times are bugging you as well, by the way, have a look at our guide on how to speed up your website.

But blocking is only half the job. Watching matters just as much. Scan for malware every week. And here is a detail people miss: make sure your scanner checks core file integrity, not just known malware signatures. Attackers have got cleverer about this. Instead of dropping an obvious new file onto your server, they hide their code inside a legitimate plugin file. A signature-only scan sails right past that. A file integrity check does not.

Keep an activity log, too. Who logged in, which users appeared, what got installed, what settings changed. Boring stuff, I know, but when something looks off, that log is usually the first place that explains it.

Set up uptime monitoring as well, so you hear about a problem before your customers do. And connect the site to Google Search Console if you have not already. Google will email you about hacked content or malware, sometimes days before you would spot it yourself.

One more habit. Look at your site the way a visitor does, now and then: log out, open it on your phone. Certain malware stays completely invisible to anyone signed in as an admin.

Two colleagues reviewing website security and analytics on a laptop

Step 7: Keep backups you can actually restore

Let me be blunt. Every defence can fail eventually. Sooner or later, something gets through. When it does, and I mean when, not if, your backups decide whether you lose an afternoon or lose weeks of work and orders. That is the whole ballgame, really. Everything else in this guide is about keeping attackers out. This step is about what happens when they get in anyway.

Use the 3-2-1 approach: three copies in total, two different kinds of storage, one copy kept somewhere other than your server. Google Drive, Dropbox, Amazon S3, whatever you already use. The one thing you must not do is keep your only backup on the same server as your site. If malware wipes your site, it wipes the backups sitting right next to it as well.

How often should you back up? It depends on how often the site changes. A store or a busy blog needs daily backups. A brochure site that barely changes can manage with weekly ones. Either way, keep at least 30 days of backups, because break-ins often sit unnoticed for weeks, and the backup from last night might already contain the infection. Horrible thing to discover in a crisis, so plan for it now.

And now the part everyone skips: test a restore. Until you have brought a site back from a backup with your own hands, you only assume it works, and assumptions are not a recovery plan. Every few months, restore a recent backup to a staging copy and check that logins work, forms submit, and checkout goes through. If your host offers automated off-site backups, switch them on, but do not assume they work until you have tested one. Our guide to automating repetitive business tasks shows how to set up that kind of hands-off routine.

Step 8: Extra steps if you run an online store

Stores need a little more attention than brochure sites. Why? Because the checkout is where the money moves. Attackers know that, and they aim accordingly. In October 2026, they went after store checkouts specifically to steal payment details. Not the homepage. Not the blog. The checkout.

So. First, never store card details on your own server. Use a payment processor such as Stripe or PayPal, and let them handle the card data. That is what they are for. Second, keep your store plugins and payment gateway updated the same day a security release appears. Not Friday. Not next week. The same day. Third, test your checkout after every update. Every single one. A broken checkout costs you sales immediately, and a compromised one costs you trust permanently. And trust, once you lose it, is a lot harder to win back than a sale.

Limit who can access orders and customer data, and back up your store database several times a day during busy periods. Losing a morning of orders because your last backup was yesterday is the kind of pain you only need to feel once.

Step 9: Choosing a security plugin

A single good security plugin earns its place. It covers jobs WordPress does not do by itself: scanning for malware, blocking repeated login guesses, adding two factor login, flagging vulnerable plugins. That is a lot of work for one plugin, and it is why I recommend picking one and sticking with it. Run two and they usually trip over each other, slow the site down, and argue over the same settings. I have untangled that mess for clients before. It is never fun, and it is never quick.

Here is a fair comparison of the three most widely used free options:

Plugin Free plan covers Best for Watch out for
Wordfence Firewall, malware scanner, login protection, two factor login Most small business sites, especially stores The firewall learns over time, so give it a week to settle
Sucuri Security Malware scanning, file integrity checks, security alerts Sites that want simple monitoring and hardening The free plugin has no firewall; the firewall is a paid service
Solid Security Two factor login, login protection, file change detection Site owners who want a clean setup wizard Some useful features need the paid version

Cloudflare deserves a mention too. Its free plan adds a firewall and bot protection in front of your whole site, and it works alongside any of the plugins above. If you only do one paid thing for your site’s security, a cloud firewall is usually the best money you will spend. I would put it ahead of a premium plugin, personally.

Do not judge a plugin by its marketing page. Check when it was last updated, read recent reviews, and confirm it is tested with your version of WordPress. A security plugin that has not been updated in a year is a liability, not a protection.

What does not help much

Most security checklists include a few tips that sound clever but do very little against real attacks. They are fine to do, just do not count on them.

Take the database prefix. Changing it from wp_ is the classic example, but once an attacker can read your database, they can read the prefix straight from your configuration file. Hiding your WordPress version? Same story: automated attacks try everything against every site, so the version number gives them nothing useful. Changing the “admin” username by itself is a small win at best, and piling on extra security plugins adds overlap, conflicts, and a slower site, not safety.

So where should your time go? Updates. Logins. Backups. A firewall. Those four stop real attacks. The rest is decoration. Nice to have, fine to do on a quiet afternoon, but decoration all the same.

How to tell if your site is already hacked

Many site owners find out from someone else: a customer, Google, or their host. Check for these warning signs yourself, before somebody else has to tell you.

Admin accounts nobody recognises, especially recent ones. Pages that send visitors to unrelated sites. Spam pages appearing under your domain in search results. Plugins or files nobody installed. An unexplained slowdown, or a warning from your host about odd traffic. And alerts inside Google Search Console.

If you spot any of these, resist the urge to tighten settings first. I know, it feels backwards. Your instinct says lock everything down, right now. But remove the infection before you harden anything, or the attacker keeps the hidden route they used to get in. Hardening a hacked site is like putting a better lock on a door when someone already has a key. The lock is not the problem. The key is.

Here is the first hour plan.

  1. Put the site into maintenance mode so visitors see a holding page, and make sure it returns a 503 status so search engines treat the downtime as temporary.
  2. Using a device you trust is clean, reset every password connected to the site: WordPress, hosting, database, and file access. End active sessions and cancel application passwords and remote keys.
  3. Track down the infection itself: unfamiliar admin accounts, files changed recently, plugins nobody installed, and odd code tucked into theme or plugin files.
  4. Bring back a backup from before the break-in, or clean the site by hand if no clean backup exists.
  5. Update everything, then shut the route the attacker used, whether it was an old plugin, a weak password, or a leaked key.
  6. Look for security alerts in Google Search Console, and ask Google to review the site once it is clean.
  7. If customer or payment details might have been exposed, tell the people affected and check what the law requires where you operate.

If that list feels overwhelming, hire a professional. I am serious about this one. A rushed cleanup that misses a backdoor means the site gets hacked again within days, and the second cleanup costs just as much as the first. That is not a failure of effort. It is a job that rewards experience, and sometimes the smart move is admitting it.

Your WordPress security maintenance schedule

Staying secure is ongoing work, not a weekend job. Here is a rhythm you can realistically keep.

When Do this
Weekly Apply updates, confirm backups ran, review security alerts and scan results
Monthly Review users and roles, review your plugin list and remove extras, check the activity log
Quarterly Test a full restore from backup, review hosting and PHP version, audit application passwords and remote keys

Put a recurring reminder in your calendar. The weekly routine takes about fifteen minutes once it becomes a habit. Compare that with cleaning a hacked site, which usually runs from a few hundred dollars to several thousand, plus lost sales and lost trust while the site is down.

What does WordPress security cost?

The core steps cost nothing but time: updating, two factor login, removing unused plugins, and backups to a free cloud storage plan.

A cloud firewall is free at the basic level through Cloudflare. Paid plans start at around $20 per month. A premium security plugin or a managed firewall service usually costs $99 to $300 per year. Professional maintenance, where someone else handles updates, monitoring, backups, and cleanup, typically costs $50 to $200 per month for a small business site. That is usually far less than cleaning up a hacked site, and it buys back the hours you would spend doing it yourself.

Frequently asked questions

Is WordPress secure?

Yes, for most small business sites. The core software is maintained by a large team and is rarely the way attackers get in. The weak points are usually the extras around it: old plugins, reused passwords, an unpatched server, and backups that were never tested.

How do WordPress sites get hacked?

The usual routes are old or vulnerable plugins, passwords that were stolen or reused, server software that was never patched, and remote access keys that leaked. Attackers run automated scans across millions of sites, so even a small site gets probed.

Do I need a WordPress security plugin?

It helps, but it is only one layer. Pair it with regular updates, two factor login, a firewall, and backups stored away from your server. And run just one security plugin, not two or three.

How often should I update WordPress plugins?

Install security releases as soon as you see them, ideally the same day. Do a wider update pass every week, and try big changes on a staging copy first.

How do I know if my WordPress site has been hacked?

Look for admin accounts nobody recognises, pages that redirect visitors elsewhere, spam pages appearing under your domain in search results, unfamiliar plugins, an unexplained slowdown, or a warning inside Google Search Console.

How much does it cost to secure a WordPress website?

The basics cost nothing but time. A paid firewall or premium plugin adds a modest yearly fee, and hiring someone to maintain the site usually runs $50 to $200 a month. Either way, it costs far less than recovering a hacked site.

Conclusion

Learning how to secure your WordPress website is not about becoming a security expert. It is about doing a small number of things in the right order, and then keeping them up. Update everything and delete what you do not use. Protect your logins with strong passwords and two factor authentication. Keep your user list short. Install software only from sources you trust. Put a firewall in front of the site, keep off-site backups, and test that you can restore them.

Start with the five thirty-minute steps at the top of this guide, then work through the rest over the coming weeks, and put the maintenance schedule in your calendar so it actually happens.

If you would rather hand the whole thing to someone else, OmazDigital can help. Our team builds and maintains WordPress websites for small businesses, including security audits, updates, backups, and monitoring, so you can focus on running your business instead of worrying about your website. Contact us to book a WordPress security review, and we will check your site against this checklist and tell you exactly what needs attention.