0 items
24/7 Support & Sales   1300 210 210
Online Support Web Hosting

How to password protect a directory

If you have web hosting with Crazy Domains, you can store sensitive material online and simply limit access to the said files to only authorised users. You can do this by setting passwords to directories within your site. This can be implemented with the Directory Privacy feature within your Hosting Manager.

To password protect a directory, follow the steps below:

  1. Click on My Account at the top of the page.
  2. Select Hosting Manager from the drop-down menu.
  3. Enter your username and password, and click Log In.
  4. On the Home page, click the word Files or the [ v ] arrow symbol on the right side.
  5. Click the Directory Privacy icon, which is next to the File Manager icon.
  6. On the pop-up screen, select Home Directory to view all directories in your web server. If you want to be able to also see all the hidden files and folders, check Show Hidden Files (dotfiles). Click Go.
  7. In the next page, you will see all the directories in your web server. Select the one you want to put a password on and click the corresponding Choose button to the right.
  8. If you just want to restrict a particular folder within one of the main directories, simply click the main directory to see the folders inside it. Find the folder you want to restrict and click the corresponding Choose button to the right.
  9. Next page, check the Password protect this directory and type in the name you want to give the directory. You can give the directory any name you want, no matter what the directory's actual name is.
  10. Click Save.

Important Note: Once you implement password protect on a directory, only authorised users you add will be able to access it. So it is important that you create at least one authorised user after restricting a directory.

Congratulations, you now know how to set password protection for your directories.

This has the same effect as the password protection on your Hosting control panel.
If you want to know how to reset your cPanel password, click here.

Note: If you want to remove the password protection from a directory, simply uncheck the Password protect this directory.

Adding Authorised Users

Protected directories can only be accessed by authorised users with correct login credentials. You can add Authorised Users in the Directory Privacy. To do this, follow the steps below:

  1. Click on My Account at the top of the page.
  2. Select Hosting Manager from the drop-down menu.
  3. Enter your username and password, and click Log In.
  4. On the Home page, click the word Files or the [ v ] arrow symbol on the right side.
  5. Click the Directory Privacy icon, which is next to the File Manager icon.
  6. On the pop-up screen, select Home Directory to view all directories in your web server. If you want to be able to also see all the hidden files and folders, check Show Hidden Files (dotfiles). Click Go.
  7. In the next page, you will see all the directories in your web server. Select the one you want to put a password on and click the corresponding Choose button to the right.
  8. If you just want to restrict a particular folder within one of the main directories, simply click the main directory to see the folders inside it. Find the folder you want to restrict and click the corresponding Choose button to the right.
  9. Next, under Create a User, fill out the following fields:
  10. Username This is the Authorised User’s name.
    New Password This is the key that will enable you to access the password protected folder. It is recommended that you use uppercase and lowercase letters, numbers, and symbols to create a strong password. The system will tell you how weak or strong your password is when you type it in the appropriate fields.

    If you find it difficult to make a strong enough password for your email, you can let the system create one for you.

    Click the Password Generator button. In the pop-up box, copy the generated password and paste that in the Password fields.

    You can also choose to check I have copied this password in a safe place. Then, click Use Password. This will automatically copy and paste the generated password in the Password fields.

    Important Note: Make sure you have actually saved the generated password in a safe and easy to recall place.

    Password (Again) This is only for confirmation and should be the same as the New Password.
  11. Click Save.

Congratulations, you have now added an authorised user who can view this directory.

You can add an Authorised User in any directory even if the password protect feature is not enabled. However, the user will not have to log in with the username and password unless the password protect is enabled.

If a directory is password protected, it should have at least one Authorised User, otherwise no one will be able to view the directory.

Other Directory Privacy features

Aside from setting password protection and creating authorised users, you can also perform the following tasks in the Directory Privacy feature.

Modify an Authorised User’s password

To change the password of an Authorised User, follow the steps below:

  1. Fill out the Create User fields with the current username and the new password.
  2. Click Save to implement the changes.
    The new authorisation settings will override the old one.

Delete an Authorised User

To remove an Authorised User, follow the steps below:

  1. Select the user you want to delete under Authorized Users.
  2. Click Delete User.
  3. You will then get the following message:
    • Success: The access permissions for the user “(username)” have been removed.

If you want to know how to get started with Web Hosting, click here.

If you want to know how to access your Hosting Manager, click here.

Was this helpful? Yes No 65% of people found this helpful.