How to Improve Your WordPress Security

How to Improve WordPress Security, FixMyWP guide header image

WordPress Security Guide

One of the most important things you can do with your WordPress website is to keep it secure. Sites that are not secure are vulnerable to attacks by hackers and can spread malware to their readers, and could potentially place customers’ information at risk, making you lose readers and clients.
In this article we’ll take a look at some best practices you can follow to improve your WordPress security. Many of these sections include links to suggested plugins.

Make sure your host keeps security as a priority. Make sure they use a current, supported version of PHP and MySQL (or MariaDB). They should use web application firewalls and have an intrusion detection system. Also look for account isolation.

Keep a Recent Backup of your WordPress Site

Backups allow you to perform a one-click recovery of your website. No matter how safe you make your website, you still need a recent backup just in case. Hopefully you’ll never need it, but if you do you’ll be grateful you have it. Backups can be automated and stored in online storage such as Dropbox or on your own PC. Keep at least one copy away from your web server.

Keep Your WordPress Site Updated

Your WordPress installation, themes, and plugins should be kept up to date. Updates are often issued to fix security vulnerabilities or to remove scripts with known security holes. Minor and security updates to WordPress are installed automatically. Since WordPress 5.5 you can also turn on automatic updates for plugins and themes from the dashboard, and since 5.6 for major WordPress releases. It’s important to keep everything updated, because once a security issue is fixed and made public, hackers look for sites still running the older versions.

Use Caution when Choosing WordPress Themes and Plugins

There are lots of places online to get themes and plugins for WordPress. This creates potential for insecure code that can leave your website open for hackers and ruin your WordPress Security. Before downloading anything, check when it was last updated, read the most recent reviews, check for support issues and the author’s response to problems. If you’re not sure, stay safe by avoiding anything questionable. Make sure you have a recent backup before installing anything to your website. Don’t keep plugins and themes you don’t need. Delete them from your server. Enable automatic updates on any theme or plugin that has the option.

Avoid free themes and plugins unless they’re from reputable developers or hosted on WordPress.org. Free themes from unofficial sources often contain base64 code which gives the developers the ability to include ads and spam links and potentially malicious code.

Limit WordPress Login Attempts

If anyone can attempt to log in as many times as they want, your site is vulnerable to brute force attacks. This is a script that tries to log into your website using various combinations of user names and passwords. It can try hundreds of combinations per second. Common user names and passwords put you at high risk.

Think your site has been hacked? We remove the malware, close the hole it came through and lock the site down for a flat $249. See malware removal →

You can use a plugin that will control the number of logins and block users by their IP addresses if they have too many failed attempts.

Hide your WordPress Usernames

Common usernames make brute force attacks easier. The most common username for a WordPress website is admin. Never use admin as your username. One of the best things you can do to improve your security is to remove the admin username.

WordPress does not let you change a username from the dashboard. In order to change your username, you’ll have to create a new administrator account with a new username. Next, log in as the new user and delete the original account. You can assign the original posts to the new account.

You should also hide your username from the author archive URL. WordPress shows this by default, and this can make it too easy for scripts to find the usernames. Changing the nickname and “Display name publicly as” in your profile hides the username on your posts, but the author archive URL uses a separate slug that WordPress creates from the username. To change that slug, you need to edit the user_nicename field in the database or use a plugin.

Use Strong Passwords

Never use a weak password. Don’t use your name or short words. One reason passwords are easy to guess is because we humans are too predictable. We like patterns and words that we can memorize easily. For example, the most common passwords are:

  • 123456
  • password
  • 12345678
  • qwerty
  • 123456789

The next most common practice is to add a number at the end of a word or phrase. Very often this number is 1. Using actual words allows hackers to perform a dictionary attack. Hackers simply start with the most common words and the most common numbers.

For best practice, passwords should be long and include symbols, numbers, upper-case, and lowercase characters. More characters are better than fewer. Try to use at least 15 characters.

A good password might look like this:

  • ud7rbqtso%bxi503ja1pr

You could create these yourself, use the Generate Password button on your WordPress profile page, or let a password manager create and store them. Change a password right away if you think it has been exposed, and never reuse it on another site. For more tips, see creating a strong password policy.

User Privileges

When creating user accounts, be sure to set their privileges appropriately. Giving someone too much access gives them the ability to make changes at will.

2-factor Authentication

Also known as 2-step verification, 2-factor authentication enforces a secure login by requiring the user to log in with two different factors. A popular example is Google’s free 2-Step Verification (see why you should use Google 2-Step Verification). The process is simple:

Step 1 – enter your password as normal.

Step 2 – you enter a code that you receive via email, text or an authenticator app, or use a security key.

Use a Plugin to Improve Your WordPress Security

Plugins do most of the security work for you. They can protect you against brute force attacks, hide your usernames, hide your login page, limit login attempts, make backups, protect file permissions, protect your .htaccess file, force strong passwords, create a firewall, etc.

★★★★★
When my sites got hacked and my webhost said, “Sorry, can’t help you!” FixMyWP stepped in to clean out the sites in their trademark meticulous manner–all while keeping the pricing honest and reasonable.
Lee Wallender
thedatinggurus.com

Final Thoughts

There’s no such thing as a perfectly secure website, but you can greatly improve your website’s security by following these tips and best practices. They are a good starting point for keeping your WordPress website secure. Keeping your site secure is a never-ending process. Keeping WordPress security at the top of your list will make it harder to be hacked and will help keep your website running smoothly.

Your turn. How do you keep your WordPress site secure? Did I leave out your favorite tip? Do you have anything to add? Let us know in the comments.

Image: https://pixabay.com/p-265130/

Think your site has been hacked?

We remove the malware, close the hole it came through and lock the site down. Flat rate of $249, usually done the same day or within 24 business hours.

See malware removalNot sure? Answer 4 quick questions

In this article

Need a hand with your site?

Answer four quick questions and see your flat price before you pay. Most fixes are done the same day or within 24 business hours.

Related articles