Skip to the page
Locked out and security
Locked out and security

Put a password on a folder of your website

1 min read

Do you have content or a folder on your website that you want to secure so that only visitors with valid login details can view the contents? This is easy to do in cPanel using the 'Directory Privacy' feature. In this article, we'll show you how:

 

Step 1- Log into cPanel

Log into your cPanel account with your username and password.

Step 2 - Open 'Password Protect Directories'

Once you have logged into cPanel, under the Security heading click on 'Directory Privacy'

This will display a full directory tree of your site's files

Step 3 - Select Your Directory

Navigate through your folder structure by clicking on the folder icon to the left of a folder name top open it and view its contents. When you have found the folder you wish to password protect, click on its name.

Step 4 - Enable Password Protection

Click the checkbox for 'Password protect this directory' and enter a name (this is a description field that will display when a visitor tries to access your page. Click Save.

You will be presented with a screen saying the permissions have been updated. Click 'Go Back'

 

Step 5 - Set Usernames & Passwords

Enter a username  under 'Create User' and a password. Note that the password must be complex and reach 80 on the complexity scale. Click 'Add/Modify USer' when done to add the user. You can now add as many users as required.


Your web folder is now secure and will require a valid username and password to be able to access it.

Did this fix it?

Still not sorted? Let a Geek sort it out.
Lodge a ticket about this guide or call 1300 722 504, 9am to 6pm, Mon to Fri, AEST.
Tell us what you tried and any error message. Never send a password in a ticket.

Still stuck? Speak to a Geek

1300 722 504

9am to 6pm, Mon to Fri, AEST.

Lodge a ticket any time.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.