I can still feel the pain when my website got compromised few years ago. I was so shock when I browsed my website and it shows something else. I thought I was typing in the wrong address and I kept trying it for few times. It shows the same result. Then I know my website got compromised. My mood fell to the bottom!
This incident taught me a lesson that I should had always take proactive action to protect my website from security threats. Remember, security is about to minimize the risk but not risk elimination. Risk will always be there.
I am not a security expert but I want to share with you what I do to protect my website and how to secure WordPress website.
If you are already using “admin” as your username, you can simply create a new username with administrator role. Then remove the “admin” username. Don’t worry about the posts or pages that created by “admin” user. You will be asked if you want to delete all the contents created by “admin” or assign them to the new user.
In some cases, you would need someone else other than you to manage your WordPress website. In this case, you need to grant access to that user to the WordPress backend.
Make sure you practice the least privileged principles by assigning appropriate role to the user. Don’t assign administrator role to user just for the sake of convenient or you will regret later.
By practicing the least privileged principles, you wil greatly reduced your security risk.
123456
qwerty
Password
abc123
Below are some criteria to create a strong password.
There are few ways to change the table prefix. If you are installing a fresh new WordPress, you have a chance to change the default table prefix during the installation.
If you are already using the default table prefix, you can still change it but the steps will not be so straightforward. You must do it carefully or you will break your website. I don’t recommend you do this unless you are confident with your coding skills.
Therefore, you should disable the file editing function to lift your WordPress security. There are 2 ways to disable file editing function. You can either use a plugin or manually editing the wp-config.php file.
For me, I am using the All In One WP Security WordPress plugin to disable file editing. If you would like to do it manually, you can access the wp-config.php and change the “DISALLOW_FILE_EDIT” setting to ‘true’.
define(‘DISALLOW_FILE_EDIT’, true);
Don’t worry, disable file editing function in WordPress doesn’t mean that you can’t make change to your file any more. You can still be able to change your files using your favourite FTP application. You just won’t be able to do it via WordPress itself.
Limiting failed login attempts will greatly reduce your website vulnerability to brute force attack. You can achieve this easily by installing a WordPress plugin. For me, I used All in One WP Security plugin. It has an option to limit the number of attempts to login from a specific IP address.
This means that you are required not only a username and password but also another piece of information to ensure that you are the only person can access to your account.
A common implementation of the 2FA is by sending a One-Time-Password (OTP) via SMS or email. Alternatively, you can use Google Authenticator 2FA plugin to implement this.
Thanks to WordPress community! As soon as they found any vulnerability in WordPress, a patch will be created to fix it. This is the reason why you should always keep your WordPress website up to date. By keeping your WordPress update to date, you are also keeping your website away from vulnerable attack.
You can easily add a captcha to your WordPress login page using All in One WP Security plugin. To do this, simply go to WP Security >> Brute Force >> Login Captcha to enable captcha on login page.
Your website’s security is a very importance matter you need to pay extra attention to it. I am sure you don’t want to be the next victim. That’s all for my sharing today and I hope you learn something from my article. Remember, “Prevention is better than cure”.
To Your Sucess,
Kwah Choon Hiong
Do you know that you can use your mobile phone to scan documents? Of course,…
Today, I want to show you how to cast your mobile phone to your PC.…
In this article, I will show you how to install and configure Fail2ban service on…
Have you ever want to bulk delete to your WordPress posts records and you have…
Perhaps you hear about the terms “Landing Page”. Sometimes, we also call it as “Lead…
In this article, you will be learning how to embed Google Forms in WordPress. Google…