WordPress security comes down to a few habits: keep WordPress, your theme and your plugins updated, and use strong passwords with a second login step. Give each user only the access their work needs, and keep backups you can restore. Your host looks after the server underneath, so these habits cover the part that's yours.
Is WordPress safe?
Yes, WordPress itself is safe to use, as long as you keep it up to date. The WordPress team releases updates to fix new security issues, and only the latest version is officially supported. Because WordPress is so popular, it's also a common target for cyber-attacks. Many of those attacks are run by bots looking for an easy way in.
That way in is rarely the server. The WordPress handbook traces most hacks to the part the owner looks after: the software you install, such as WordPress, its plugins and its theme. Once inside, attackers can add malware to the website or change its pages. A hacked website can also infect its visitors' devices with malware, or trick them into downloading it. Our guide to malware explains what malware is.
How to secure your WordPress site
Each measure below adds a layer of protection, and you set up many of them once. If your site is already live, start with updates, passwords and the login page. If you're still choosing where to host it, start with the host.
Choose a host that keeps the server secure
Your host is often responsible for the server your website runs on, but you're responsible for WordPress and everything you install on it. A good WordPress host runs current, stable server software, makes backups you can recover from and is happy to tell you what security it offers. If you share a server with other websites, ask your host what it does to keep one hacked site from affecting the others.
Keep WordPress, themes and plugins updated
Of everything you do on the site itself, updates come first. When WordPress fixes a security hole, its release notes can say what was fixed, which shows attackers where to look. A website that hasn't updated is then easy to attack. The same goes for themes and plugins, since attackers look for outdated ones.
On most sites, WordPress updates itself automatically by default. Since version 5.6, new installations get both minor and major releases this way. For plugins and themes, you switch automatic updates on yourself: plugins one by one on the Plugins screen, themes under Appearance. On our Hosting for WordPress, updating them stays your job, unless you move to Managed Hosting for WordPress, where we do it for you.
Use SSL and HTTPS
An SSL certificate lets your website use HTTPS, which encrypts everything sent between your visitors' browsers and your server. Visitors can then send passwords, card numbers and other details safely. Every one of our hosting plans includes an SSL certificate.
Use strong, unique passwords
A weak or reused password makes your WordPress site much easier to break into. A strong password:
- Is long. The UK's National Cyber Security Centre suggests three random words joined together, which is strong enough and still easy to remember.
- Is used for this account only, so if another account you have is compromised, an attacker can't use that password here.
- Doesn't contain your name, your username, your business name or the name of your website.
- Isn't a single dictionary word or a date, such as a birthday.
You don't have to remember all of these passwords. A password manager can create a strong password for every account and remember them for you, so you only need to remember one master password. WordPress also shows a strength meter when you change your password, so you can see how strong a new one is.
Protect the login page
The login page is where bots try to guess their way in. These brute force attacks try one username and password after another until one works. Turn on two-factor authentication (2FA) for every administrator account, so a stolen password isn't enough on its own. WordPress doesn't include 2FA itself, so you add it with a plugin. Choose a well-reviewed, recently updated one from the official plugin directory that works with an authenticator app, such as Google Authenticator. The second step can then be a code from that app on your phone. If your host doesn't already limit login attempts, a security plugin can do it and slow the bots down.
If you host your WordPress site with us, you can switch on Advanced Login Protection in your control panel. You then log in to WordPress with the same details you use for our control panel, which stops hackers from exploiting your WordPress login page. It's on by default for new 1-click WordPress installations.
Give users only the access they need
Every account that can change your site is one more way in if its password leaks, and an administrator account gives an attacker everything. WordPress has six roles, and on a single site you'll use these five:
| Role | What they can do | Give it to |
|---|---|---|
| Administrator | Everything, including plugins, themes, settings and other users | You, and anyone who runs the whole website with you |
| Editor | Publish and manage all posts, including other people's | Someone who proofreads or runs your content |
| Author | Publish and manage their own posts | A writer you trust to publish |
| Contributor | Write and manage their own posts, but not publish them | A guest writer whose posts you check first |
| Subscriber | Manage their own profile only | Readers who sign up, such as members |
The sixth role, Super Admin, only exists on a multisite network that runs several sites from one WordPress installation.
Our advice: keep one administrator account for yourself and give everyone else the lowest role that lets them do their job. A friend who checks your texts needs Editor, not Administrator. Delete the accounts of people who no longer work on the site, and give their posts to another user when WordPress asks. If you only want to keep a page private, such as one for members, you don't need to give anyone a role at all: you can password-protect parts of your website instead.
Change the admin username
Attackers try usernames like "admin" and "webmaster" first, so avoid them for your administrator account. If yours already uses one, the simplest fix is a new administrator account with a different username, which you add under Users. Once you've logged in with the new account, delete the old one and give its posts to the new account when WordPress asks what to do with them.
You can also keep the account and rename it in the database with phpMyAdmin, as the WordPress handbook describes. With phpMyAdmin, you edit your website's database directly, and a change you make there can't be undone. Back up your database first, so you can restore it if something goes wrong. The username is in the user_login field of the users table, which is usually called wp_users, although the start of its name can differ. Locate your administrator account and click Edit. Then enter the new username in the Value field of user_login and click Go to save it.
Back up your website
A backup lets you get your website back online when something goes wrong, from a hack to a failed update. Make sure it holds both your files and your database. Keep regular copies, so you still have a clean version if a problem goes unnoticed for days. The more your website changes, the more often you'll want a new backup.
We back up your web space and databases on our servers every day and keep each backup for up to 14 days. Whether you can restore one yourself depends on your plan. From the Professional plan up, you restore a backup yourself. On Starter, you can still see your backups, but you need to upgrade before you can restore one. If you're on Starter, or want copies you control, also make your own backups with a backup plugin and keep a copy somewhere other than your web space.
Choose plugins with care and remove the ones you don't use
WordPress plugins add features to your website, but they're often written by volunteers and vary in quality. Before you install one:
- Get it from the official WordPress plugin directory or a well-known company.
- Make sure its developer still updates it.
- Check that it isn't on our list of discouraged WordPress plugins.
Plugins you no longer use are worth removing too. First check that nothing on your website still depends on them, then delete them rather than just switching them off.
Switch off file editing in the dashboard
By default, administrators can edit theme and plugin files straight from the WordPress dashboard, unless you used our 1-click installer, which switches this off. If an attacker gets into an administrator account, the editor lets them run their own code. You switch it off with one line in your wp-config.php file. The file is in the main folder of your WordPress installation, which you can open with your host's file manager or an SFTP program. Make a copy of the file first, then add this line just above the line that starts with /* That's all, stop editing!:
define( 'DISALLOW_FILE_EDIT', true );When you've saved the file, nobody can edit theme or plugin files from your dashboard any more, so an attacker can't use the editor either. If you installed WordPress manually, we also recommend stopping PHP files from running in your uploads folder, a common hiding place for an attacker's backdoor. You do this with a short rule in the .htaccess file in your wp-content/uploads folder. With our 1-click installer, running PHP in that folder is off by default.
Monitor for vulnerabilities
Updates only help once you know something needs one. With vulnerability monitoring, you keep track of known security holes in what you've installed, so you can update or remove the weak part before an attacker uses it. Several security plugins can do this for you and warn you when a plugin or theme you use has a known hole.
Do you need a WordPress security plugin?
You don't need one, but it can help. Many security plugins can act as a firewall: they filter out malicious requests before WordPress has fully processed them. Check what your hosting plan already includes first, since your host may do some of this for you. If you host with us, Advanced Login Protection guards your login page once it's switched on, which it is by default for new 1-click installations.
Add a security plugin if you want a firewall, login limits or vulnerability warnings that your host doesn't give you. Choose it with the same care as any other plugin. Our guide to the plugins we rate highest has suggestions. Treat a security plugin as an extra layer on top of updates, strong passwords and backups, not as a replacement for them.
Let us handle updates and security for you
Checking for updates and keeping an eye on vulnerabilities is regular work that's easy to put off. With Managed Hosting for WordPress, we can take both off your hands, while your passwords, two-factor authentication and users stay with you:
- On Managed Hosting for WordPress, we update WordPress, your theme and your plugins, with visual testing of each update.
- We also monitor your website for vulnerabilities and apply security patches automatically.
Where to start
Three of these measures you can do today. Install the updates waiting in your dashboard and turn on two-factor authentication for your administrator account. Also remove the users and plugins you no longer need. Then decide who keeps up with updates from now on. You can work through this list yourself, or move your site to Managed Hosting for WordPress and hand them to us.
Recommended reading
WordPress6 Nov 2026How to find your WordPress login page (wp-admin)
Your WordPress login page is your site's address with /wp-admin at the end. Here's how to log in, why wp-admin may redirect and how to reset a lost password.
WordPress6 Aug 2026What is WooCommerce?
Do you want to start your online shop? Get to know WooCommerce in this guide: an e-commerce solution to build your shop.
WordPress5 Aug 2026Why is my WordPress site so slow?
Slow WordPress site? We look at the most common reasons and share how to speed up your WordPress website in this practical guide.
