Knowledgebase: Control Panel
How can I password protect a folder ?
Posted by Barry Tarbet on 01 July 2009 12:48 PM

Follow these instructions if you were going to password protect a directory called "members"

 

we need to access the File Manager / AKA WebShell
this will allow you to copy, move, delete, and rename files and directories in your home directory on the server. Also, you can use it to upload, download, compress and decompress files as well as preview them in the browser.

htProtect utility is integrated into WebShell. a Protect utility allows you to password-protect any directory on your site so only authorized visitors can open its content with their browsers.

You can launch WebShell in two different ways:

  • From the Quick Access page, click File Manager under the Tools section.
  • Go to FTP/User account>FTP User menu of your Control Panel and click the File Manager (HtProtect) link on the page that appears.

WebShell and htProtect manuals are available from the WebShell interface, Help button.

 

==========

1. Log into your control panel and open the File Manager / Web Shell.

You can launch WebShell in two different ways:

  • From the Quick Access page, click File Manager under the Tools section.
  • Go to FTP/User account>FTP User menu of your Control Panel and click the File Manager (HtProtect) link on the page that appears.

WebShell and htProtect manuals are available from the WebShell interface, Help button.

 

WARNING (For Windows-based accounts)

When you want to password protect a folder in WebShell that is accompanied with creating a user, authentication problem can arise as WebShell will not check whether system account with the same user name exists.
There are two ways to prevent this problem:

- Create a user in WebShell based on the name of your own FTP account. For example, FTP account name is mike. Then user name in Webshell can be mikeNNNN, where NNNN are some other symbols.
- If you want to protect a folder using your own FTP account name, you should set the same password in Webshell as for FTP account.

 

2. Browse to the directory you want to protect, click on the physical domain name to drill down until you located the folder you wish to protect,
3. Click on the BlueFolder next to folder (example: members) - the View Folder Will change and the option "create .htacess file" will appear - this is a wizard 

5. The .htaccess wizard will display where it will want to install the master user password file,
     usually you can leave the 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".

6. Enter your username and password, and hit "Save".
7. 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.

If you made an error or no longer wish to password protect the folder - Login to the Control Panel - File Manager has

make sure you have "show hidden files enabled"
Locate the .htaccess file and click to delete

 

 

 



if you need further assistance, please dont hesitate to create a Support Ticket

(82 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).