Securing your WordPress website
WordPress is the most widely used content management system (CMS) in the world, which also makes it an attractive target. The measures below make things a lot harder for attackers. You do not have to take them all at once; start at the top.
Keep everything up to date
Outdated versions of WordPress, themes and plugins often contain known security holes. In the WordPress dashboard, under Dashboard, click Updates and install the updates for WordPress, your themes and your plugins. Update your website at least once a month, or switch on automatic updates.
Use strong passwords and no default user
A user called admin is an easy target.
- Create complex passwords with a password manager. See Changing your WordPress password.
- If your administrator is called
admin, create a new administrator via Users › Add User and log in with it. Then delete theadminaccount: at What should be done with the content owned by this user?, choose Attribute all content to another user., select your new administrator and click Confirm Deletion.
Install a security plugin
A security plugin protects against attacks and scans your website for vulnerabilities. You install it via Plugins › Add Plugin. We recommend:
- Wordfence Security
- Kadence Security, formerly Solid Security (see Installing and configuring Kadence Security (formerly Solid Security))
Use SSL
An SSL certificate encrypts the connection between your website and the visitor.
- Set up a free SSL certificate for your domain name.
- Then make WordPress use HTTPS everywhere with the Really Simple Security plugin (see Moving WordPress to HTTPS with Really Simple Security).
Make regular backups
If something goes wrong, you can quickly restore an earlier version.
- We make a backup of your hosting package every day (see backups).
- Before an update or a major change, create an extra backup yourself.
Limit login attempts
In a brute-force attack, an attacker endlessly tries passwords. Use a security plugin with login protection and set a maximum number of failed attempts, for example with Limit Login Attempts Reloaded (in the plugin search: Limit Login Attempts Security) or Wordfence.
Switch off XML-RPC
XML-RPC is an older WordPress feature that is often misused for attacks. If you do not use it, switch it off:
- with a plugin such as Disable XML-RPC-API, or
- with this line in your theme's
functions.phpfile:add_filter('xmlrpc_enabled', '__return_false'); - With WordPress Hosting, you can also use the security measure that blocks access to
xmlrpc.phpin WP Toolkit (see below).
Hide the login address
The default login address /wp-admin is easy to guess. Give your website its own login address with the WPS Hide Login plugin. See Changing the WordPress login address.
Switch on two-factor authentication
With two-factor authentication (2FA), a leaked password alone is not enough for an attacker: you log in with an extra code from an app on your phone. Install a 2FA plugin for this, such as WP 2FA or Google Authenticator. Kadence Security also has 2FA.
Check the file permissions
Incorrect file permissions can expose sensitive files. Directories should be set to 755 and files to 644. You check this with an FTP client (such as FileZilla) or in the file manager of your control panel. See File permissions explained.
Extra with WordPress Hosting
With WordPress Hosting, WP Toolkit in Plesk does part of the work: you see the security status of your website, apply security measures and see which plugins and themes are vulnerable. See Fixing security issues with WP Toolkit.
Thank you for your feedback.

