The protdir.exe utility serves to manage web protection for domain
directories, or, in other words, site areas. The utility allows the
following operations:
- creating, renaming, and removing protected web directories
- adding and removing users allowed to access protected web directories
- changing the credentials of the users allowed to access protected web
directories
Location
%plesk_cli%
Usage
protdir.exe <command> [<dir_name>] [
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
]
Example
The following command creates the ProtectedDir protected directory
on domain example.com, adds the JohnDoe user for this directory, and
sets the MyPass password for this user.
plesk bin protdir.exe --create ProtectedDir -domain example.com -add_user JohnDoe -passwd MyPass
Commands
| Command | Parameter | Description | Example |
|---|---|---|---|
--create or -c |
<dir_name> |
Creates the protected URL on the specified domain. Requires |
To create the protected URL ProtectedDir on example.com: plesk bin protdir.exe --create ProtectedDir -domain example.com or plesk bin protdir.exe -c ProtectedDir -domain example.com |
…