Being the number one 1 CMS in the world, websites running WordPress are a great target for hackers who want to take control of other people’s websites. Hackers will ask for a ransom, sell personal information that belongs to the site’s owner/s and it’s users, distribute malware, send spam or simply, to eliminate competitors.
One very popular way of getting administrative access to a WordPress site is by attacking the login page.
Thy name is wp-login.php.
We all know it and you should know that everyone knows it. Hackers will use it since it’s the gateway to your site and you should do your best to Protect your WordPress Login Page.
Using a technique called Brute Force Attack, hackers take advantage of a few weak points that come with every WordPress installation. You should harden those weak points as soon as possible to keep intruders outside and your site safe and protected.
In this tutorial, you will learn How to Protect WordPress Login Page from Brute Force Attack
Things a hacker needs to brute force into your WordPress site.
There are 3 simple things that a hacker needs in order to brute force into your WordPress site:
- WordPress Login URL
Weak points that hackers can take advantage of.
With every WordPress installation, there come a few weak points that you should modify right away to make your site harder to brute force into.
- Known WordPress username.
- Easy to crack passwords.
- Knows WordPress login page URL.
- Unlimited amount of failed attempts.
Let’s work our way from the top and strengthen each one of these weak points in order to protect WordPress login page.
[clickToTweet tweet=”5 Easy Steps to Protect WordPress Login Page #WordPress #Security” quote=”5 Easy Steps to Protect WordPress Login Page #WordPress #Security”]
1. Change WordPress admin username
Running an old WordPress site? Chances are, the main WordPress username is called Admin and that one is used against you to take control of your site.
In order to fix this issue, you have to:
- Go to your WordPress Dashboard
- Click on Users > Add new
- Fill all the necessary info and pick the role of the new user as Administrator.
- Log out of your admin account and sign in to your new account.
- Click on Users > All Users
- Hover the mouse over the old user and click on delete.
- Select Attribute all content to and select the newly created account and click on Confirm Deletion.
2. Create a stronger password.
This is the easiest thing to do and it can be done in a matter of seconds.
Either invest in a password manager like 1Password 2 and generate a strong password using it.
Or, use an online Password Generator by LastPass
In order to change your password, you need to go to Users > Your Profile > New Password.
3. Limit login attempts
Think about it, how many attempts do you need to enter your password?
2 times if you’re entering it from your memory and one time if you’re using a password manager. That’s 3 attempts in total.
Then why give a hacker unlimited amount of attempts until they manage to access your site?
The reason I picked Wordfence instead of other plugins like Limit Login Attempts is that the latter hasn’t been updated in 5 years and it’s not recommended to use an outdated plugin.
Choosing Wordfence is a much better option because it contains many great security features and it keeps getting updated and getting better.
4. Protect WordPress Login Page by changing the URL
Like I said in the beginning, everyone knows about wp-login.php. It’s the gateway to your site admin area. So it’s obvious that you should learn how to protect it.
The best way to Protect WordPress Login Page is by changing the URL and you can do that by using the WPS Hide Login.
- Go to Plugins > Add new
- Search for WPS Hide Login. Install and Activate.
- Go to Settings > General.
- Scroll down to WPS Hide Login. That’s where you will see the place where you enter the new URL.
Now that your new login page URL had changed, when a hacker tries and visits domain.tld/wp-login.php they will be taken to your 404 page instead.
As you see from the screenshot above taken from Wordfence real-time traffic scan of News47ell, there are a lot of people interested in logging into my site from all over the world.
They all trying to visit wp-login.php, a non-existent page thanks to WPS Hide Login.
And in case you forgot your new secure URL, delete the plugin, and reinstall it again. It’s that simple.
5. Enable Two Factor Authentication
Let’s say that the hacker found out your new and unique login URL and even found out your username and password, having two factor authentication enabled would be great since it will prevent the hacker from logging in to your site because they don’t have the ‘something you have’ element.
There are two great two factor authentication services that I use and recommend:
AuthyAuthy recently announced that they are deprecating their WordPress Plugin. An alternative would be the Two-Factor WordPress Plugin by George Stephanis
Both are good and using any of them is considered the last barrier between you and the hacker, but it’s a strong one since the hacker would need the ‘something you have’ element which is your phone.
You can also do two more things to make your site even more secure by choosing a secure host, like Lightning Base which I have been using for….scroll down a bit and see the number, Lightning Base offers many great security features to protect your WordPress site which you can read more about it here.
Plus, you can use Cloudflare which also offers a suite of security features that will increase the security of your site even more.
As you can see, it’s not that hard to Protect WordPress Login Page and it doesn’t cost you anything. So go ahead and install these plugins to protect your WordPress login page today for a safer future…too cheesy?