2005since
year

Hosting & Security

WordPress Security: 20 Practical Measures to Protect Your Company Website from Hacking

Most WordPress hacks are caused by simple, avoidable mistakes: outdated plugins, weak passwords and poor hosting. A list of 20 measures ranked by importance, and what to do if your website is hacked.

  • 16 Nov 2026published
  • 6min read
  • Nov 2026updated
Key takeaways
  • Regular updates to WordPress, the theme and plugins are the most important security measure.
  • Strong passwords + two-step verification for every administrator.
  • Keep plugins to a minimum and delete unused ones.
  • Daily off-server backups, with restoration tested.
  • Good hosting with a firewall and monitoring.

A hacked company website isn’t just a technical problem: spam pages shown to your customers, a Google warning that “this site may be hacked”, email used to send spam, and possibly a data leak. The sad thing is that most of the hacks we’re called in to fix could have been prevented with simple measures.

Why do WordPress websites get hacked?

CauseHow it happens
Outdated plugins and themesA known vulnerability that wasn’t patched
Nulled (pirated) pluginsThey arrive with malicious code built in
Weak passwordsAutomated guessing at the login page
Unprotected hostingInfection from other websites on the server
Excessive permissionsUnnecessary administrator accounts

Twenty measures, ranked by importance

Essentials you can’t neglect

  1. Update WordPress, the theme and plugins regularly.
  2. Never use a pirated plugin or theme.
  3. Strong passwords and a password manager.
  4. Two-step verification for every administrator account.
  5. Daily backups stored off the server.
  6. Test restoring a backup periodically.
  7. HTTPS across the whole website.

Reducing the attack surface

  1. Delete unused plugins and themes.
  2. As few administrator accounts as possible.
  3. Limit login attempts.
  4. Disable file editing from the dashboard.
  5. Disable XML-RPC if it isn’t used.
  6. Don’t use the username “admin”.

At server level

  1. Hosting with a firewall and malware scanning.
  2. A PHP version that still receives security support.
  3. Correct file permissions.
  4. A web application firewall (WAF) or a CDN with protection.

Monitoring

  1. Uptime monitoring.
  2. Google Search Console alerts for security issues.
  3. An activity log of user changes.

If your website is hacked: the emergency plan

  1. Put the site into maintenance mode to protect visitors.
  2. Change the passwords for WordPress, hosting, the database and email.
  3. Restore the latest confirmed clean backup.
  4. Update everything and delete anything unnecessary.
  5. Scan the files and database and look for the vulnerability.
  6. Request a review in Search Console if a warning appeared.
In our projects: websites such as Madarat Cybersecurity, Basmat Tafaul and the Bnood store are delivered with a small number of trusted plugins, updates and backups as part of our hosting service.

Security as a habit, not an event

Most hacked websites weren’t hacked by a sophisticated attack but by accumulated neglect: a plugin not updated for a year, an administrator account for an employee who left, a reused password, and backups nobody can find. So security is a routine, not a project: a weekly review of updates; a monthly review of users, permissions and plugins; and a quarterly test of restoring a backup. A simple routine prevents most problems before they happen.

Plugin and theme security

Every plugin is another potential door. Before installing any plugin, ask: do I really need it? Is it from an official source and a known developer? When was it last updated? How many websites use it? Could the same function be achieved with simple code in the theme? Delete any deactivated plugin, because deactivated plugins can still be exploitable if their files remain on the server. And never use “cracked” themes or plugins from unofficial sources; many come with backdoors already installed.

Users and permissions

Give each person the least privilege they need: a content writer gets the “Editor” or “Author” role, not “Administrator”, and an external designer gets a temporary account that’s deleted when the work is done. Review the user list monthly and delete anyone who has left. Enable two-factor authentication for every administrator, and use unpredictable usernames instead of “admin”.

From our work

The websites we manage under hosting and maintenance receive regular updates, off-server backups, monitoring, login attempt limits and network-level protection. If your website has been hacked, read our response and recovery plan or contact our hosting and maintenance service.

Security at hosting level

WordPress security isn’t complete with security plugins alone; much of it happens at server level: a PHP version with security updates, isolation between websites on the same account, a server firewall, correct file permissions, blocking file execution in the uploads folder, an SSL certificate, and off-server backups. Good managed hosting provides these layers automatically. A content delivery network with a web application firewall adds a layer in front of the website that blocks common automated attacks before they arrive. Read CDN and protection and types of hosting.

Device and people security

The strongest website protection collapses if an administrator’s password is stolen from an infected device or through a phishing message. Protect the devices used to manage the website with updates and security software, use a password manager, don’t open the dashboard from untrusted public devices or networks, and train whoever manages the website to recognise phishing messages impersonating WordPress or the hosting company. The human side is the most exploited vulnerability.

A monthly review checklist

  • Update the core, theme and plugins after taking a backup.
  • Delete unused plugins and themes.
  • Review users and permissions.
  • Check that backups succeeded.
  • Review the login attempt log and security alerts.
  • Scan the website with a security scanner.

Is a security plugin enough?

Popular security plugins are very useful: a firewall, file scanning, login attempt limits and alerts. But they’re one layer. They don’t replace regular updates, strong passwords and two-factor authentication, independent backups or secure hosting. Think of security as multiple layers; if one fails, another stops the attack.

Security and online stores

WooCommerce stores hold customer and order data, which makes their security even more important. On top of everything above: don’t store card data (leave that to the payment gateway), watch for suspicious orders, secure the dashboard with extra restrictions, and make sure payment and shipping plugins are always official and up to date. Read payment gateways.

The practical summary

Regular updates, a few trusted plugins, limited permissions, two-factor authentication, secure hosting, a firewall, independent and tested backups, and a monthly routine. Together these layers make your website a hard target, so most automated attacks move on to easier ones.

Frequently asked questions

Should I enable automatic updates? For small security updates, usually yes; major updates are better applied after a backup and a test.

Is changing the login page URL enough? It reduces random automated attacks but isn’t protection in itself; two-factor authentication and attempt limits matter more.

How often should I scan the website? An automated scan daily or weekly, and a manual review monthly.

Our experience protecting websites

Most of the hacked websites we’ve been asked to fix shared the same factors: plugins not updated for months, themes from unofficial sources, administrator accounts with weak passwords, and no independent backups. That’s why we build websites with custom themes and few plugins, and enable two-factor authentication, independent backups and network-level protection from day one. Prevention is always cheaper than recovery.

If you manage your website yourself, start this week with three steps: update everything after taking a backup, enable two-factor authentication, and delete what you don’t use. Security is an ongoing journey rather than a destination; every month you stick to the routine reduces risk, extends your website’s life and protects your company’s reputation and your customers’ data.

A final security tip

Keep a written list of every account connected to your website (hosting, domain, dashboard, email, external services) and who has access to each, and review it every three months. This simple list halves your response time if a problem ever occurs. And if you need help reviewing the security of your current website, we do that as part of our hosting and maintenance service.

The bottom line

Security is a habit, not a project: updates, backups, strong passwords, few plugins and protected hosting. Read our guide to choosing hosting and SSL certificates.

FAQ

Is WordPress insecure?

The core itself receives security updates continuously; most problems come from outdated plugins or themes, weak passwords or unprotected hosting.

Do I need a security plugin?

A good security plugin is useful (firewall, scanning, login attempt limits), but it’s no substitute for updates, backups and good hosting.

What should I do if my website is hacked?

Take the site offline or put it in maintenance mode, change every password, restore a clean backup, update everything, and find the vulnerability before relaunching.

Creative Agency
The Creative Agency team

Written from 20+ years designing websites and identities for clients in Saudi Arabia and Egypt — every tip here comes from real projects.

Want this applied to your project?

Book a free consultation — we will review your site or brand and propose a clear plan.

Book a free consultation

Get your free consultation now!