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:
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:
After creating a restriction, ISPmanager:
Example of section for Apache
<Directory /var/www/www-root/data/www/example.com/tmp>
Allow from all
AuthName "Access limited by ISPmanager"
AuthType Basic
AuthUserFile /var/www/www-root/data/etc/access.example.com.GHCoKdm8.passwd
Order allow,deny
Require valid-user
</Directory>
Example of section for Nginx
location /tmp/ {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
auth_basic "Access limited by ISPmanager";
auth_basic_user_file /var/www/www-root/data/etc/access.example.com.GHCoKdm8.passwd;
}