If you want to have a folder (or a directory) of your website password protected so that only people you allow can visit a page, you can add a password to the folder in your cPanel. In this article we'll show you how to setup password protection.
As password protection is sometimes a temporary solution, we'll also show you how to remove password protection. If you are looking to password protect a single file, please see our other article: Password protecting a single file in .htaccess.
There are some scenarios in which password protecting a directory is a temporary solution. For example, if you are testing a new site, you may block access to it until you are ready to launch the site. When you're ready to launch the site, you will need to remove the password protection. To do so:
Congratulations, now you are familiar with the process of password protecting a directory, and removing the password protection.
n/a Points
|
2015-07-13 3:28 pm
Hi,
I followed your instrutctions and I tried to add protection to my admin folder but when I try access the directory throw url I get a 404 not found page. Can you help me? Thanks
Best regards Charles |
Staff 17,314 Points
|
2015-07-13 5:53 pm
Hello Charles,
Sorry you're having problems with the Password Protect directory option. If you're getting a 404, then the page does not exist or the URL is misspelled or mis-identified. Double-check both as the option to password protect does not change the name of the directory. If that does not help,then please provide us a URL for us to look into the issue further. Regards, Arnel C. |
n/a Points
|
2018-09-19 12:02 am
Hi, I have agodaddy account with cpanel 7. I can not find Password Protect Directories button. Please help |
Staff 1,348 Points
|
2018-09-19 12:34 am
You can also do this with an .htaccess file.
|
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!