View Categories

Reading Time: 1 min read

Securing Your WordPress Admin with a Password (wp-admin) Directory via cPanel? #

Securing Your WordPress Admin with a Password, Access your website’s WordPress admin area through the wp-admin directory. Adding a password to this directory enhances security. This article guides you on password-protecting the wp-admin directory using cPanel.

Securing Your WordPress Admin with a Password

How to Secure wp-admin Directory with a Password #

1. Begin by logging into your cPanel account.

2. Navigate to the FILES section and select Directory Privacy.

Here, you will be presented with a list of all directories within your cPanel account.

3. Locate the wp-admin folder within your WordPress account folder.

4. Click on the EDIT button corresponding to the wp-admin folder.

This action will open the Security Settings for the wp-admin directory.

5. Proceed with the following steps:

  • Select the Password protect this directory option.
  • Input a name in the Enter a name for the protected directory field.
  • Click the Save button.

A confirmation message will appear, confirming that the directory is now protected.

6. Click on Go Back.

The Create User section will now be displayed, with fields for your login details.

  • Username: Enter your desired login username
  • Password: Enter or generate a secure password
  • Confirm Password: Re-enter the password for confirmation

7. After completing all fields, click the Save button.

This procedure outlines how to add password protection to the wp-admin directory via cPanel. Henceforth, when accessing your WordPress admin area, you will be prompted with a new login window requiring you to log in.

Securing Your WordPress Admin with a Password FAQ's #

How can I secure my WP admin with a password?

Secure your WordPress Admin Area with a password

To achieve this, log into your WordPress hosting cPanel dashboard and select the “Password Protect Directories” or “Directory Privacy” icon. Then, choose your wp-admin folder, typically found within the /public_html/ directory.

WordPress Password Security Essentials

Length: At least 10 characters; ideally 50 characters Can contain spaces and be a passphrase (Avoid using the same password across different sites) Update passwords every 120 days or 4 months.