Password protect a folder and all sub-folders and links?

Avatar
  • Answered
Hi,
I see some ways to protect single files. Is there a way to protect a whole section of a web site? For example, lets say there is a link Private/index.html and the folder Private has other sub-folders and each of those have sub-folders, as well as other documents and html files.
Is there a way to protect everything in the Private tree with a password? That would be without putting any other files on my website, including everything in the public_html directory exclusive of Private.
Thanks for the suggestions!
Dave
Avatar
Arn
Hello Dave, Thanks for your question about password protecting a folder for a website. The cPanel includes an option called password protect that you can apply to a folder. Check out this tutorial for instructions on how to use the option: How do I password protect a directory in my cPanel? If you have any further questions, please let us know. Kindest regards, Arnel C.