You can restrict access to the entire website or to some of its directories. To open a directory of the website with restricted access, the visitor will need to go through an additional authorization in the browser.
To restrict access to the website:
Enter Domains → WWW-domains → menu → Access limits.
Select the directory of the website you want to restrict access to. You can specify it manually in the Path to directory field or select it in the file manager.
Enter your login information:
This username will only be used for authorization in the website directory. It is not associated with ISPmanager user accounts.
Enter or generate a Password.
Re-enter the password in the Confirmation field.
To delete the restriction, enter Domains → WWW-domains → menu → Access limits → select the restriction → Delete.
To edit the restriction settings, enter Domains → WWW-domains → menu → Access limits → select the restriction → Users. Possible actions:
Add a new user for the restriction;
Edit the settings for the user;
Delete the settings for the user;
Enable or disable user settings.
After creating a restriction, ISPmanager:
Saves username and password in encrypted form in the file /var/www//data/etc/access...passwd.
Adds a section to the web server configuration file:
Example of section for Apache
Allow from all
AuthName "Access limited by ISPmanager"