Knowledgebase: cPanel Control Panel
How do I password protect a directory?
Posted by Maria Brosnan on 27 June 2016 03:05 PM

Log into cPanel at http://yourdomain.co.nz/cpanel and click ‘Password Protect Directories’ under the ‘Security’ Section.

To password protect a directory in the site's public_html directory select the ‘Web Root (public_html/www)’ option and click ‘Go’.

Click on the folder you want to password protect in the list shown.

Under ‘Security Settings:’ tick the box ‘Password protect this directory’ and enter a name in the ‘Name the protected directory’ box and click ‘Save’.

Then use the ‘Create User’ section to create the username and password needed to access the directory via a browser.