✧ Key takeaways

WordPress security hardening for non-developers: updates, strong logins with 2FA, backups, and Wordfence or Sucuri — every step in plain language.

Your WordPress site got hacked, and you found out from a customer. Or from Google, which now shows a red warning instead of your homepage. Or from your host, which suspended your account because your site started sending spam. None of those are fun ways to learn that your site was an easy target.

Here is the part nobody tells beginners: WordPress itself is not the weak link. WordPress powers more than 40 percent of all websites, which makes it the biggest target on the internet — and most successful attacks do not break WordPress at all. They walk in through an outdated plugin, a reused password, or an admin account called "admin" with a password a script could guess in minutes. The fixes for all of that are simple, and none of them require you to write code.

This is a research-based guide built from WordPress.org documentation and the security vendors' own pages, checked on 27 November 2026. We did not run hands-on penetration tests on the tools named here, and we say so where it matters. Prices change; check the vendor's current page before you buy.

Key takeaways

  • Most WordPress hacks come through outdated plugins and themes, weak login credentials, and nulled (pirated) themes — not through WordPress core itself.
  • Four moves cover most of the risk: keep everything updated, use a strong password plus two-factor authentication, limit login attempts, and keep a backup you have actually tested.
  • Wordfence (free, Premium currently $99 a year) and Sucuri (Basic $199.99 a year) are the two most widely used security options; the free version of Wordfence is enough for most small sites.
  • Wordfence has announced Premium rises to $199 a year from 3 December 2026 — buying before that date locks in the current price for a year.
  • Hardening is maintenance, not a one-time job. A site that was secure in January can be exposed in March by a single plugin update you skipped.

Why WordPress sites get hacked

Attackers do not pick your site because they dislike you. They run automated scans across millions of sites looking for known weaknesses, and your site either has one or it does not. Understanding the common entry points tells you exactly what to fix first.

Outdated plugins and themes. This is the number one entry point, by a wide margin. A vulnerability is found in a popular plugin, the fix is released, and every site that does not update stays open. Attackers scan for the old version specifically. The fix is boring and it works: update promptly, and delete the plugins and themes you do not use. An inactive plugin with a known flaw is still code sitting on your server.

Weak login credentials. Brute-force attacks try thousands of username and password combinations against your login page. "admin" as a username plus a short or reused password is the combination bots try first. Two-factor authentication stops this attack cold, because the password alone is no longer enough.

Nulled themes and plugins. A "free" copy of a premium theme from a download site is one of the oldest traps on the internet. These copies very often contain hidden code that gives the distributor access to your site. If you did not pay the developer, you paid with your site. Delete any nulled theme or plugin today and buy the real thing or use a free alternative from WordPress.org.

Your hosting neighbours. On cheap shared hosting, dozens of sites share one server. If one of them is compromised and the server is not properly isolated, the infection can spread sideways to yours. This is not something you can fix from your dashboard, which is why the hosting section later in this guide matters.

Before you start: make a backup first

Do this before you touch anything else. Security changes occasionally break things — a firewall rule that blocks your own login, a plugin conflict after an update — and a backup is how you undo a mistake in minutes instead of hours.

If you already have a backup plugin or your host takes daily backups, confirm the latest backup is from today and that you know how to restore it. If you have no backup at all, stop here and set one up first — our guide to backing up a WordPress site walks through the free and paid options, and our 3-2-1 backup rule guide explains how to keep a copy offsite so a hacked server cannot take your backup with it. A hacked site with a clean backup is an afternoon of work; without one it can mean rebuilding from scratch.

Step 1: Update everything, then delete what you do not use

Go to Dashboard, then Updates. Update WordPress core first, then every plugin, then your theme. Check for updates at least once a week, and install security updates the day they appear. A security release is a public announcement that the old version has a hole; the gap between the release and your update is the window an attacker needs.

Turn on automatic updates for plugins and themes you trust. WordPress lets you enable auto-updates per plugin from the Plugins screen — click "Enable auto-updates" next to each one. Core security releases already update themselves by default. This single setting closes the most common entry point on the list, and it costs you nothing.

Then delete what you do not use. Go through your Plugins list and remove anything you installed for a test and forgot, anything you replaced with something else, and anything you cannot remember installing. Do the same for themes: keep your active theme and one default WordPress theme as a fallback, and delete the rest. Every piece of code on your server is a potential entry point, including the code you never run. Only install plugins and themes from WordPress.org or directly from the developer's own site, and check the plugin page before installing — when it was last updated, how many active installs it has, and whether it is marked compatible with your WordPress version. A plugin that has not been updated in two years is a plugin whose developer has stopped fixing its flaws.

Step 2: Lock down the login page

Your login page is the front door, and by default WordPress leaves it standing open with a sign on it. Here is how to lock it properly.

Stop using "admin" as a username. If your admin account is still called "admin", create a new administrator account with a different username, log in as the new account, and delete the old one (assigning its posts to the new account when WordPress asks). Bots try "admin" first on every site they scan. Removing it costs you five minutes and removes the easiest guess they have.

Use a real password, and stop reusing it. A strong password is long and unique to this site — at least 16 characters, generated by a password manager rather than memorised. If you reuse the same password on your email, your hosting account, and your WordPress admin, one breach anywhere hands over all three. Our guide to two-factor authentication and password hygiene covers password managers and the setup in plain language.

Turn on two-factor authentication (2FA). With 2FA, logging in needs your password plus a six-digit code from an app on your phone. Even if someone steals your password, they cannot get in without your phone. Wordfence includes 2FA in its free version, and there are free dedicated plugins like WP 2FA. Turn it on for every administrator account, not just yours. This is the single most effective login protection you can add, and it is free.

Limit login attempts. By default, WordPress lets anyone try passwords as many times as they like, forever. A limit-login-attempts plugin (Wordfence includes this too) locks an IP address out after a few failed tries — five failed attempts and a 15-minute lockout is a sensible setting. Real users mistype a password once or twice; bots try thousands of times. Moving your login page from /wp-admin to a custom address (plugins like WPS Hide Login do this in one setting) also cuts the background noise of bot login attempts, though it is obscurity, not protection — a bonus, not a substitute for 2FA.

Step 3: Give people the smallest role they need

WordPress has five built-in user roles. The administrator can do everything, including installing plugins and editing code. An editor can publish and manage other people's posts but cannot install anything. An author can publish their own posts, a contributor can write drafts but cannot publish, and a subscriber can only read and comment.

Most small sites hand out administrator accounts far too freely — to a freelance writer, a virtual assistant, a developer who fixed one thing two years ago. Every administrator account is a full set of keys to the site. Go to Users, then All Users, and check who actually has administrator access. Anyone who only writes or edits content should be an editor or author, not an administrator. Anyone who no longer works with you should not have an account at all.

This matters because the most damaging hacks do not always come from outside. A compromised account with administrator rights can install a malicious plugin in seconds. A compromised editor account can deface posts, but it cannot install code. The difference between those two outcomes is the role you assigned. For the same reason, never share one admin login between several people — each person gets their own account with their own password and 2FA, and when someone leaves, you delete their account and nothing else changes.

Step 4: Install a security plugin — Wordfence or Sucuri

WordPress does not ship with a firewall or a malware scanner, so this is the step where you add one. You do not need two security plugins — pick one, configure it, and leave it running. The two options most small sites choose between are Wordfence and Sucuri, and they work in different ways.

Wordfence is a plugin that runs on your own server. It is the most installed WordPress security plugin, with more than 5 million active installs, and its free version already covers the essentials: an endpoint firewall, a malware scanner that compares your files against the official WordPress repository, login security with 2FA and login-attempt limits, and live traffic monitoring. The free version gets new firewall rules 30 days after paying customers do, which is the main thing you give up by not paying.

Wordfence Premium costs $99 a year for one site at the time of writing, and adds real-time firewall rules, the real-time IP blocklist, country blocking, and premium support. One thing to know before you buy: Wordfence has announced that Premium rises to $199 a year from 3 December 2026, with its Care plan rising to $890 and Response to $1,900. If you were already planning to buy Premium, purchasing or renewing before 3 December locks in the current price for another year. After the change, the free version stays free and stays a solid choice for a small site — the delay on firewall rules matters most for high-traffic or high-value targets.

Sucuri works differently: it is a cloud service, so traffic passes through Sucuri's network before it reaches your site. That means attacks are filtered before they touch your server at all, and a Sucuri plan also brings a CDN performance layer and a team that cleans up your site if it gets hacked. The Basic Platform plan costs $199.99 a year for one site and includes the cloud firewall, CDN, malware scanning, and malware removal. Pro is $299.99 a year with faster scan frequency and a faster support response. Sucuri also offers a free plugin, but it only covers basic scanning and hardening — the firewall and cleanup are paid features.

Which one should you pick? If you want a free start and you are comfortable managing settings inside WordPress, install Wordfence free and turn on its firewall, login security, and 2FA. If you would rather have attacks stopped before they reach your server and a team on call to clean up a hack, Sucuri Basic at $199.99 a year is the managed option. What you should not do is install both at once — two firewalls can conflict and slow your site, and you end up managing two dashboards for one job. Whichever you choose, run a full scan immediately so you know your starting point, turn on email alerts for critical issues, and read the scan results instead of ignoring them.

Step 5: Make sure your site runs on HTTPS

HTTPS encrypts the connection between your visitors and your site, so passwords and form entries cannot be read in transit. It is also a ranking signal for Google and a trust signal for visitors, who now see a "Not secure" warning on plain HTTP pages in most browsers.

Most hosts offer a free SSL certificate through Let's Encrypt, and many turn it on automatically for new sites. Check yours: open your site in a browser and look for the padlock icon next to the address. If it is missing, log in to your hosting panel and look for SSL, Let's Encrypt, or Security settings, and enable the free certificate. If your host charges for a basic certificate or makes it hard to find, that is a genuine reason to consider a better host — a free certificate is standard practice in 2026. After the certificate is active, make sure WordPress actually uses it: in Settings, then General, both the WordPress Address and Site Address should start with https://. A plugin like Really Simple SSL can handle the redirect from http to https for you and catches mixed-content issues, which otherwise leave parts of your site unencrypted even after the certificate is on.

Step 6: Backups — the safety net underneath everything else

Every step in this guide reduces the chance of a successful attack. None of them reduces it to zero. Backups are what make an attack survivable, because a clean backup turns a hacked site into a restore job instead of a rebuild.

The rule to follow is the 3-2-1 rule: three copies of your site, on two different kinds of storage, with one copy offsite. In practice that means your live site, a backup on your hosting account or an external drive, and a backup in cloud storage or with a backup service. The offsite copy matters because an attacker who gets into your server can delete the backups stored on it — that happens often enough that you should assume it will happen.

Use a backup plugin that can restore your site, not just download files. UpdraftPlus is the most widely used free option: it backs up your files and database and can send the backup to Google Drive, Dropbox, or Amazon S3 on a schedule. Your host may also take daily backups — many managed WordPress hosts do — but check how long they keep them and whether restoring is self-service or a support ticket. Then test the restore: once a quarter, restore a backup to a staging copy of your site (most hosts offer a one-click staging site) and confirm the site actually comes back working. A backup that has never been tested is a hope, not a plan, and this is the test that finds the problem on a quiet afternoon instead of the day your site is defaced. Our 3-2-1 backup guide covers the full setup, including how often to test.

Step 7: Harden the files — the careful part

These steps touch your site's configuration files, so read them carefully and ask your host for help if anything is unclear. They are worth doing, but they are also the steps where a wrong edit can take your site down — which is exactly why step zero was "make a backup".

Disable file editing from the dashboard. By default, an administrator can edit theme and plugin files from inside WordPress (Appearance, then Theme File Editor). That means anyone who compromises an admin account can edit your site's code directly from the dashboard. Adding one line to your wp-config.php file — define('DISALLOW_FILE_EDIT', true); — removes those editors entirely. You can still edit files through your hosting file manager, which is the safer way to do it anyway. If editing wp-config.php sounds daunting, the Wordfence and Sucuri plugins both offer this setting as a checkbox, and your host's support team will do it for you if you ask.

Use unique security keys and salts. WordPress uses secret keys stored in wp-config.php to encrypt login cookies. If your keys were never changed from the values your host generated at install, or if they leaked, old login cookies stay valid. WordPress.org provides a free generator for fresh keys; paste the new set into wp-config.php and every user gets logged out and has to sign in again. Do this once after a security incident, and once if you inherited the site from someone else.

Set sane file permissions. Files should generally be 644 and folders 755, which means the site can read and run what it needs while other accounts on the server cannot write to your files. Your wp-config.php file deserves stricter treatment — 600 or 640 — because it holds your database password. Most hosts set these correctly by default; if yours does not, your host's support team can fix them in a minute. Do not set anything to 777, ever. That is full read, write, and execute access for everyone on the server, and it is the permission setting most often found on hacked sites.

Step 8: Your host is part of your security

A lot of WordPress security is decided before you ever log in to WordPress — it is decided by where the site lives. A good host patches the server, isolates your site from the other sites on the same machine, offers free SSL, takes daily backups, and gives you a staging site. A bad host does none of that and charges you extra for each missing piece.

Managed WordPress hosting costs more than the cheapest shared plan, and for a business site the difference is usually worth it: the host handles updates, backups, and server-level security, and you manage the WordPress-level steps in this guide. SiteGround is one of the better-known options in this space, with managed WordPress plans that include daily backups and security features aimed at small sites. Whatever host you choose, the test is simple: if the host makes security harder or charges you separately for every basic protection, it is the wrong host for a business site.

Step 9: Watch for trouble — and know what to do if you find it

Turn on email alerts in your security plugin for file changes, failed login spikes, and malware scan results. Check your site's uptime with a free monitor so you know quickly if it goes down or starts redirecting visitors. Once a month, spend ten minutes on a quick review: are updates current, did the backup run, are there any new user accounts you do not recognise, and are there any files in your scan results you cannot explain?

If you do get hacked, do not panic and do not just delete the files that look wrong. The standard recovery sequence is: put the site into maintenance mode, change every password (WordPress admin, hosting, database, FTP), restore from a clean backup taken before the hack, update everything, run a full malware scan, and check your user list and installed plugins for anything you did not add. If the backup is also compromised or you cannot find how they got in, that is the point to call in help — Sucuri's cleanup service is built for exactly this, and your host's support team can often tell you when the files were changed. After recovery, work out the entry point and close it, or the same attack will succeed again next week.

Your 30-day hardening plan

If the whole list feels like a project, treat it as a small one with a deadline. Here is the order we would do it in.

WhenWhat to do
Day 1Make a backup and confirm you can restore it. Check your hosting login works.
Day 1Update WordPress core, all plugins, and your theme. Delete unused plugins and themes.
Day 2Fix logins: remove the "admin" username, set strong unique passwords, turn on 2FA for every administrator.
Day 2Install Wordfence (free) or Sucuri, run a full scan, turn on alerts and login-attempt limits.
Day 3Check HTTPS is on and both WordPress addresses use https://. Fix any mixed content.
Day 7Review user roles: demote anyone who does not need administrator access, delete accounts of people who no longer work with you.
Day 7Set up scheduled offsite backups (3-2-1) if you have not already.
Day 14Do the file hardening: disable file editing from the dashboard, refresh security keys and salts, check file permissions.
Day 30First monthly check: updates current, backup ran, scan clean, no unknown users. Put the monthly check on your calendar.

After day 30, the routine is small: update weekly, check the backup and scan monthly, and review users and plugins quarterly. That is the whole maintenance burden for a hardened site.

Frequently asked questions

Is WordPress itself insecure?

No. WordPress core is reviewed by a large security team and patched quickly when issues are found. The risk sits in the layers around it — outdated plugins and themes, weak passwords, and poor hosting. A WordPress site that is updated, backed up, and protected with 2FA is a hard target, and most attackers move on to easier ones.

Do I need to pay for a security plugin?

For most small sites, no. Wordfence's free version covers the firewall, malware scanning, login protection, and 2FA, which is the core of what a small site needs. Paying for Premium buys real-time firewall rules and support, which matters more as your traffic and the value of your site grow. Sucuri's paid plans buy a managed service with cleanup included, which is a different proposition — you are paying for the team, not just the software.

Will a security plugin slow my site down?

It can, a little. A plugin-level firewall like Wordfence inspects traffic inside WordPress, which adds some load. On a small site the effect is usually unnoticeable, and it is far smaller than the cost of a hacked site. If your site is large or slow, a cloud firewall like Sucuri filters traffic before it reaches your server, which avoids the load entirely — and our guide to website speed and Core Web Vitals covers the other things that actually move the needle on speed.

What is the one thing I should do if I only do one thing?

Turn on two-factor authentication and use a strong, unique password for your admin account. It is free, it takes five minutes, and it stops the most common attack against WordPress sites — automated password guessing — even if everything else on this list is still undone. The second thing is a tested backup.

Can I harden WordPress without touching any code?

Yes, almost entirely. Updates, 2FA, login limits, user roles, backups, and SSL are all dashboard settings or plugin settings. The only steps that touch files are disabling dashboard file editing, refreshing security keys, and changing the database prefix — and each of those has a plugin or a host-support option that does it for you. Nothing in this guide requires you to write PHP.

How do I know if my site is already hacked?

Common signs: your site redirects visitors to strange pages, Google shows a warning or your pages drop from search results, new admin users or plugins appear that you did not create, your host suspends the account for spam, or your site suddenly runs very slowly. A full malware scan from Wordfence or Sucuri is the quickest way to confirm it, and both will list the changed files so you can see what was touched.

The bottom line

WordPress security is not a mystery and it is not a product you buy once. It is a short list of habits: keep everything updated, lock the login with a strong password and two-factor authentication, give people the smallest role they need, run one good security plugin, keep a tested backup offsite, and pick a host that does its share of the work. Do the first four steps this weekend. They take an afternoon, they cost nothing, and they close the doors that automated attacks try first.

Disclosure: This guide contains links to products we discuss. If you buy through some of those links, SaaSNivo may earn a commission at no extra cost to you. Prices were checked on 27 November 2026 and can change — always confirm the current price before buying. Wordfence Premium is listed at $99 a year for a single site, rising to $199 a year from 3 December 2026; Sucuri Basic is $199.99 a year and Pro is $299.99 a year.

Featured in this guide

Mors

Mors is a senior technology analyst and developer who builds, tests, and breaks modern software platforms to find what truly works. Specializing in cloud engineering, optimization tools, and SaaS architecture, they provide data-driven, objective reviews designed to save development teams time, money, and computing overhead.