1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Password-protecting a directory using the "Directory Protection" tool
You may lock access to a folder so that a username and password are required whenever a request is made for the folder's content (including any files inside).
Actions to be carried out
Log into FTP Manager
In the tree, display the folder to be protected
Click on the Padlock icon on the same line as the folder
Create a user and corresponding password
Click OK and the folder is locked.
Setup via FTP Manager
This tool does NOT allow protected access to just one specific page located within a given directory while allowing other pages within the same directory to be accessed freely. For advanced functionality, please read the Apache documentation or e.g. http://www.commentcamarche.net/contents/7-apache-les-fichiers-htaccess
Such a protection can be set up manually by creating a pair of ".htaccess" and ".htpasswd" files whose syntax is given below, but using the assistant is nonetheless much more straightforward.
Throughout the following example, htaccess protection allows only the user 'damien' to log in, and we assume that the .htpasswd and .htgroup files are placed inside the same directory as the .htaccess file:
Example content of .htaccess file
<code>AuthType Basic AuthName Restricted Require user damien AuthUserFile .htpasswd AuthGroupFile .htgroup</code>Example content of .htpasswd file
<code> damien:SWw4VYBD9Z8gU</code>User passwords must be stored encrypted in the .htpasswd file.
In the case of protection that has been set up via the assistant as illustrated previously, for security reasons, the .htpasswd file is placed in the root of your FTP directory, so that it is placed outside the /web directory (and not in the same directory as .htaccess).
Permitted characters for directory protection (those accepted by .htaccess) are