Password Protect WP-Admin or WordPress Front-End - WordPress Tips, Tricks Every Serious Blogger Must Know

News Ever


Password Protect WP-Admin or WordPress Front-End - WordPress Tips, Tricks Every Serious Blogger Must Know

Password Protect WP-Admin or WordPress Front-End

Password protecting your WP-Admin can add an extra layer of security to your site. This will make it harder for hackers to get into your website, keeping it safe(r).

To password protect WP-Admin (or your WordPress front-end or literally any other parts of your website), you need to have access to cPanel.

Note: The steps described here cover the current version of cPanel as at September 2020, but should work in the foreseeable future.

Step 1: Log in to your website’s cPanel account.

Step 2: Under Files, find Directory Privacy. This will take you to the page where you can select the directories you want to be password protected.

Step 3: Find public_html and click it (by default this is where your website’s file resides. Some hosts don't follow this so make sure to refer to your host’s manual for more info if you can’t find a folder named public_html).

Step 4: Find the folder called wp-admin then under the actions column, click edit.

This will bring you to the page where you can activate password protection for the said folder. 

Note: this assumes your WordPress site is installed in the root of your public_html folder. If you installed it on a different folder or if it’s in a subdomain, you have to find the proper location of your wp-admin folder.

Step 5: Activate the option “password protect this directory”. Give it a name (this is just for reference) if you want to, then click the save button.

After that, the page will prompt you that the password protection has been successfully activated. Click the “Go back” link and you will be taken to the next step where you will define the username and password that you want to use.

Step 6: Create a combination of username and password to protect your wp-admin. Once you’re satisfied click the save button and you’re done!

Now, when you visit the wp-admin (or wp-login.php) page of your website, you’ll be prompted with a sign-in dialogue similar to the one below.

Note that you might notice it will only prompt you once and not on subsequent details. This is because the login data will be stored as a cookie on your browser.

If you use a different browser, turn on incognito, clear your browser cookies, or use a different computer, you’ll be prompted to log in again.

Post a Comment

  • Latest Biss Key + Frequency
    • NHL Service - 10762 V 28800 (7E) - Biss : 12 24 01 D3 11 4B 97 F3 
    • Varzish Sport HD - Yahsat 1A Satellite - Biss Key: 12 34 00 46 EB CD 00 78
    • Bein Sport - Eutelsat 16A Satellite - Biss Key: 12 24 01 D3 11 4B 97 F3
    • Discovery HD UK / Sky One HD - 12188 H 29500 8/9 - Astra 28E
    • Fox Sports Eredivisie 1 HD - 12073 H 30000 - Eutelsat 9E
      • BBC Earth - 11064 V 27500 - Eutelsat 25E
      • BBC Red Button HD 2/3/4/5/6 - 12421 H 27500 2/3 - Astra 28E
      • beIN SPORTS HD NEWS 12604 H 27500 2/3 Nilesat 7W
      Cookie Consent
      We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
      It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
      AdBlock Detected!
      We have detected that you are using adblocking plugin in your browser.
      The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
      Site is Blocked
      Sorry! This site is not available in your country.