How to password protect a directory through DirectAdmin Control Panel

    Password protecting a directory is useful when you have files (or a website) that you don't want to be accessable to everyone. For example, you could protect a directory for private company files, or protect a directory so that just a particular client can access it.

     

  1. Login to the DirectAdmin Control Panel (located at http://da1.hardlines.com or http://www.yourdomain.com/admin).

  2. In the Username field, type your administrator username.
  3. In the Password field, type your administrator password, and click Login.
  4. Once logged in, your screen will look like this:


  5. Under the Main Menu field, select Password Protected Dirs.


  6. Click Find a Directory to Password Protect.
  7. Open your public_html directory.


  8. Once you find the directory that you want to protect, click Protect next to that directory.


  9. Enter the name you want to give to your protected directory in the Protected Directory Prompt field.
  10. You can optionally set up a username and password that can access this directory.
  11. Click Save.



  12. Note: After clicking Go Back you can delete or add additional users and passwords that can access this directory.