On this page
To secure a WordPress site, keep WordPress, your theme and every plugin updated, use unique passwords with two-factor login, limit login attempts, delete anything you do not use, keep tested backups off the server, and host on a server with a firewall and malware scanning. Most hacks on small business sites are automated bots looking for exactly the gaps that list closes.
This checklist explains each step, the WordPress settings worth changing, and what to do (including your POPIA duties) if your site is compromised.
Key takeaways
- Outdated plugins and themes are the most common way in; updates close known holes.
- Unique passwords plus two-factor authentication stop most login attacks.
- Delete, do not just deactivate, unused plugins and themes.
- Server-level protection (firewall, malware scanning, account isolation) blocks a lot before WordPress sees it.
- If personal information is exposed in a hack, POPIA requires you to notify the Information Regulator and affected people.
Why WordPress sites get hacked
WordPress core itself has a dedicated security team and gets security releases quickly, as described on WordPress.org's security page. The weak points are usually around it: a plugin with a published vulnerability that was never updated, a reused password from a leaked database, an old admin account nobody removed, or a hosting account with no firewall. Bots scan thousands of sites at once for these, so a small business is not too small to be hit.
The real cost of a hack
A compromised site can be defaced, used to send spam (which gets your domain's email blocked), loaded with redirects to scam pages, or used to steal form entries. Google may show a warning in Chrome and search results, and spam pages injected into your site can hurt rankings for months. Clean-up takes time or money, and customers who saw a warning may not come back.
1. Keep everything updated
Update WordPress core, your theme and plugins promptly. WordPress applies minor core security releases automatically by default, and since version 5.5 you can turn on auto-updates per plugin and theme from the Plugins screen, as described in the guide to configuring automatic background updates. For a business site, auto-update trusted, well-maintained plugins and update the rest manually each week after a backup. Our help article on updating WordPress, plugins and themes shows the steps.
Also keep PHP current. Old PHP versions no longer get security fixes, which leaves the server layer exposed even if WordPress is up to date.
2. Use strong, unique passwords and two-factor login
Every login needs its own long password: WordPress, cPanel, the hosting client area, FTP, the database and email. A password manager makes this practical. Then add two-factor authentication (2FA) to WordPress with a reputable plugin, and turn it on for cPanel and your client area too, so a leaked password alone is not enough.
3. Limit login attempts and avoid "admin"
Brute-force bots try thousands of username and password combinations against wp-login.php. Limiting failed attempts, then locking out the source, defeats this. Many security plugins do it, and some hosts block repeated failures at server level. WordPress's own guidance on brute-force attacks covers further options. Do not use "admin" as a username, and make sure the name shown on posts is not your login name.
4. Review users and roles
Give each person their own account with the lowest role that does the job: Editor or Author for content staff, Administrator only for people who manage plugins and settings. Remove accounts for former staff, old agencies and freelancers as soon as the work ends.
5. Remove unused plugins and themes
A deactivated plugin is still code on your server, and some vulnerabilities can be reached without the plugin being active. Delete anything you no longer use, keep one default theme as a fallback, and avoid plugins that have not been updated in over a year. Never install "nulled" (pirated) premium themes or plugins; they often contain backdoors.
6. Harden a few WordPress settings
- Disable the built-in file editor by adding
define('DISALLOW_FILE_EDIT', true);to wp-config.php - Disable XML-RPC if you do not use the mobile app, Jetpack or remote publishing
- Set file permissions so wp-config.php is not world-readable
- Turn off user registration unless you actually need it
The official Hardening WordPress guide explains these and more advanced options.
7. Add a firewall and malware scanning
A web application firewall blocks known attack patterns before they reach WordPress, and a scanner checks files for malware. This can come from your host, a security plugin, or both. Check what your host already provides before adding a heavy plugin that duplicates it. On our servers, Imunify360 handles firewalling and malware scanning at server level; our help article on scanning your hosting account for malware shows how to run a scan.
8. Keep tested backups off the server
No defence is perfect. Keep automatic backups with enough history (at least two to four weeks, because infections often go unnoticed), keep a copy away from the hosting account, and test a restore now and then. Our guide to website backups and hosting security covers frequency, storage and restores.
9. Use HTTPS everywhere
A valid SSL certificate encrypts logins and form entries between visitors and the server. With free Let's Encrypt certificates, every page, including wp-admin, should load over HTTPS with http redirecting to https.
10. Choose hosting with server-level protection
The server your site runs on decides a lot: account isolation so a neighbouring site cannot affect yours, a firewall, malware scanning, current PHP versions and login protection for cPanel. Our WordPress hosting runs on servers with CloudLinux account isolation, Imunify360 and free Let's Encrypt SSL. Hosting does not replace your updates and passwords, though; both sides matter.
What to do if your site is hacked
- Put the site in maintenance mode or ask your host to suspend it if it is attacking visitors
- Change every password: WordPress users, cPanel, FTP, database and email
- Restore the most recent clean backup, or clean the files and database
- Update WordPress, themes, plugins and PHP; delete anything unused
- Find how they got in (old plugin, leaked password, unknown admin user) and close it
- If Google flagged the site, request a review in Search Console once it is clean
If the attacker could have accessed personal information, such as contact form entries, customer accounts or orders, section 22 of POPIA requires you to notify the Information Regulator and the affected people as soon as reasonably possible. Our POPIA website compliance checklist explains your other obligations.
A monthly security routine
If nobody on your team will do this reliably, hand it over. Our guide to website maintenance for SA businesses lists what a proper routine includes, and our website maintenance service (R750 a month) covers WordPress core and plugin updates, onsite and offsite backups, testing and malware scans.
Quick recap
- Update core, themes, plugins and PHP
- Unique passwords and 2FA on every login
- Limit login attempts, review users, delete unused plugins
- Disable the file editor and unused XML-RPC
- Firewall, malware scanning and tested off-server backups
- Know your POPIA notification duty if personal data is exposed
Frequently asked questions
How do most WordPress sites get hacked?
Through automated bots exploiting outdated plugins or themes, weak or reused passwords, and leftover admin accounts. Targeted attacks on small businesses are much rarer.
Do I really need a security plugin?
You need a firewall, malware scanning and login protection. A plugin is one way to get them; your host may already provide some at server level. Avoid running two firewalls that duplicate each other.
What is the most important security step?
Keeping everything updated, together with unique passwords and two-factor login. Those close the gaps most automated attacks rely on.
Is WordPress safe for a business website?
Yes, when it is maintained. Core WordPress is actively secured; the risk comes from neglected plugins, themes and logins.
Sources
Web Design Hosting SA has hosted and built websites for South African businesses since 2009. Prices in our guides come from our live price list and are checked when a guide is updated. How we write our guides. Spotted something out of date? Tell us.



