- Plesk for Windows
How to protect the website access with the password?
Setting the password protected directory
at Plesk > Domains > Password-Protected Directories does not work and site still accessible.
According to the Plesk documentation , the Password-Protected Directories feature is used to protect the directories inside the Document Root (usually
), thus it is not possible to achieve protection of
As a workaround, Basic Authentication for the domain's site in the IIS Manager could be enabled:
- Go to IIS Manager > WIN-SERVERNAME > Sites > example.com > Authentication .
- Disable Anonymous Authentication .
- Enable Basic Authentication .
After this, the access to the website will be possible with any Windows system user or account which has an access to the domain's Document Root directory (
) on the file system, including Plesk Subscription's system user which can be managed at Plesk > Tools & Settings > Web Hosting Access .