Protect a directory in H-sphere

Protect a directory in H-sphere

How to protect a directory through Hsphere:

1. Login to Your control panel
2. Click FTP Manager
3. Click File Manager (HtProtect)
4. Click Protect at the bottom

5. Browse to the directory you want to lock, in this case "admin" (click the + through, just like a standard folder tree)

6. Click it of course, this will bring up the "Authentication name or realm" option, you can enter anything you want here. Click Next...

7. This window asks where you want to install the master user file, I usually leave this default. This is important though, you need to create a user. Click "Edit", next to the text

box.

It will say "/.htmaster/.ok_user" could not be found. So click "Create".

8. Enter your username and password, and hit "Save".

9. From this page, just click the disk icon on the left and choose "Save".

Your all done, your directory should be the only one protected with the username/password you have chosen.

NOTE - :   From the window of .htaccess file you can also change the password  for the user.
 

    • Related Articles

    • Password protect directory in cPanel

      1. Log in to your cPanel account > Files section > Directory Privacy menu:  2. Select Document Root for option and the domain name in question from the drop-down menu, and hit Go:  3. Once there, you may pick up the directory you wish to protect:  4. ...
    • Setting Custom DNS Entries in H-Sphere

      To create a custom record to your DNS zone, do the following: 1. Select Domain info in the Domain Settings menu. 2. On the page that appears, click the Edit icon in the DNS Configuration field: 3. This link will take you to the DNS Configuration ...
    • Setting Custom DNS Entries in H-Sphere

      To create a custom record to your DNS zone, do the following: 1. Select Domain info in the Domain Settings menu. 2. On the page that appears, click the Edit icon in the DNS Configuration field: 3. This link will take you to the DNS Configuration ...
    • Setting up APC w/ Custom Configs outside of H-Sphere

      To set up APC outside of H-Sphere is actually fairly simple to do, you just need to create the following file (ensuring that Zend and APC are turned off in H-Sphere CP under P.Servers): /hsphere/local/config/httpd2/php5/php.d/apc.ini and populate it ...
    • Password Protect Directory Directly From IIS - VPS/Dedicated Servers

      In the event that you want to lock down a specific directory and you have administrator privileges on the server, this is one way you can go about it. Log into the server and open IIS Manager Drill down the navigation tree to the domain and/or ...