Password Protection for Hsphere Windows Directories

Password Protection for Hsphere Windows Directories

If you are in a Shared Windows HSPHERE environment and wish to  password protect a directory please follow these steps:

1. Create a sub-ftp account via your h-sphere control panel. This can be found under >FTP/User Account>FTP User>FTP sub-accounts

2. Add the following to the web.config file in the target directory:

<?xml version=“1.0” encoding=“UTF-8”?>
<anonymousAuthentication enabled="false" />
<basicAuthentication enabled="true" />
<remove users="*" roles="" verbs="" />
<add accessType="Allow" roles="USER-NAME" />

3. Thats it, once the user ftp account has been created and the web.config has been updated and reflects the desired users access, password protection on the directory should automatically take effect. 

If you have a Windows VPS you can follow these steps to set up password protection on directories via IIS:

1. Log into your server through Terminal Services or Remote Desktop Connection.
2. Create your desired Windows User.
3. Click Start, select Programs, and then click Administrative Tools.
* For IIS 5.0 click Internet Services Manager.
* For IIS 6.0 click Internet Information Services.
4. In the left column you will see the Server Name.
* In IIS 5.0, expand the Server Name to find the domain name.
* In IIS 6.0, expand the Server Name and then Web Sites to find the domain name
5. Right-click on the domain name and select Properties.
6. On the Directory Security Tab under Authentication and Access Control click Edit.
7. Uncheck Enable Anonymous Access.
8. Choose the level of Authenticated Access:
* Integrated Windows Authentication: encrypts the password sent to the server (we recommend this method)
* Digest Authentication: this level works only if Active Directory is configured
* Basic Authentication: sends the password across the network in clear text (we do not recommend this method)
* .Net Passport Authentication: a web authentication service
9. Click Ok and then click Ok a second time.
10. Navigate to the folder on your server containing the contents of your website.
11. Right click the folder and select Properties.
12. On the Security tab click Add.
13. Enter the name of the user you created and click OK.
14. If you wish to allow other users to login, repeat steps 12 and 13 with the additional user names.

Your website is now password protected. If you prefer to password protect only a folder, rather than your entire website, you can repeat the exact steps above on the individual folder, rather than your entire website.
    • Related Articles

    • Setting up Remote Apps on Windows and Mac and IOs Devices

      Users have 2 options to fetch RDS Apps.  Log in directly to RDWeb CAD - USA - Users can log in utilizing their RDS users created in SolidCP (email address + password) and will grant ...
    • 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. ...
    • Reset password manually in OnApp

      When password reset in onApp fails or does not work you can manually reset the password with the following process   Reboot in recovery. Login via recovery with user/password being root/recovery or root/defaultrootpassword <-- could be either one, ...
    • Reset mysql password

      First try to see if you can login to mysql as root. ssh to root user, or su root from AD login.       mysql If you get an error similar to: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Then the password is ...
    • 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 ...