How to remove password protection from directory

Background

In some instances there may be a need to password protect a directory on your server. For example, protecting the admin login page of your website. Creating a lock can add a greater level of security and can be done simply by using cPanel.

Issue

However, there may be a time when this password is no longer required and needs to be removed. So, how do you remove the lock on a directory?

Solution

This can be acheived by removing the commands in the .htaccess file on your server.

For example, by removing or commenting out the following code in the .htaccess file, the password protection can be removed/disabled. 

AuthType Basic
AuthName "user_name"
AuthUserFile "/home/xxxx/.htpasswds/public_html/xxxx/passwd"
require valid-user

  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Powered by WHMCompleteSolution