Get 69% Off on Cloud Hosting : Claim Your Offer Now!
Adding a password to the WordPress admin (wp-admin) folder is another good way to strengthen your site security. This technique restricts access to the admin area so only authorized persons can access the section. Here is a detailed manual on executing this procedure with cPanel.
The attackers tend to attempt browsing to the wp-admin location to guess passwords, most probably through brute force. The chances of different unauthorized accesses can be brought down considerably by including a password layer, which is particularly important for sites that work with sensitive information or have millions of users.
Sign in to your cPanel through your web hosting account.
Search for the icon labelled "File Manager", which enables you to oversee your website files.
Find the leading Directory for your WordPress installation in File Manager. This is often named public_html or may be a subfolder if you installed WordPress in a specific directory.
Open the wp-admin folder by double-clicking it.
Search for the "Settings" option in the top right corner of the File Manager and check the box for "Show Hidden Files".
When you are in the wp-admin folder, search for the option labelled "Directory Privacy" or "Password Protect Directories" (the name might differ depending on your cPanel version).
Select the wp-admin Directory and click on "Save".
You will see an option to "Password protect this directory". Check this option.
Input a name into the "Authentication Name" field for the secure Directory (visible to users during login for username and password).
Afterwards, generate a username and password for entry. Ensure you select a robust password incorporating letters, numbers, and special characters.
After entering the username and password, click "Add/Modify Authorized User" to save the settings.
Start a new browser tab, go into private browsing mode, and go to your WordPress admin link (e.g., yourdomain.com/wp-admin).
You will be asked to input your recently made username and password. If you are also lucky enough to bypass this by logging in, this confirms that password protection is working.
If you decide to turn on password protection, you can get prohibited issues, including a 404 error or 'Too many redirects' message. To resolve this:
Access your WordPress root directory through the File Manager.
Locate the .htaccess file. If you can't see it, make sure to show hidden files.
Make changes to the .htaccess file by including the specified line at the conclusion:
ErrorDocument 401 default
This line helps manage error responses when unauthorized access is attempted.
While adding password protection is a significant step, consider implementing further security measures:
Two-Factor Authentication: This raises security since it is necessary to verify your identity using another form of identification, such as through a code on your phone.
Strong Passwords: Ensure that the password you use for your WordPress site, the database, and the FTP is secure and different.
Disable Directory Browsing: To avoid hackers seeing the contents of your Directory, you should incorporate this line—htaccess file.
Options -Indexes
Disable PHP File Execution: Prevent malicious scripts by turning off PHP execution in specific directories such as wp-content/uploads.
Enabling password protection for your WordPress admin folder through cPanel is a simple procedure that dramatically improves your website's safety. By implementing the steps described, you can limit entry to your admin section, making it harder for unauthorized individuals to breach your site. Always remember to integrate this technique with additional security measures to establish a strong defence against possible dangers.
Let’s talk about the future, and make it happen!
By continuing to use and navigate this website, you are agreeing to the use of cookies.
Find out more