To restrict access to files and directories located within a virtual directory, perform the following steps:
1 - 1 - Logged in to Plesk, https://your domain name:8443.
2 - Go to Websites & Domains, and find the website's domain name.
3 - Click Virtual Directories.
4 - Navigate to the directory you want to protect and click the Protection tab.
5 - To specify users who will be able to access the directory, click Add User, specify username and password, and click OK.
6 - If you want to specify a title for the protected area that will be shown to users when they attempt to access the directory, click Settings, specify a title, and click OK.