hotlink_protection.exe: Site Content Protection from Hot-Linking
The hotlink_protection
utility serves to configure protection from hot-linking on domains. By using this utility, you can perform the following operations:
- setting up hot-linking protection on a domain
- retrieve the current configuration of domain hot-linking protection
Location
%plesk_cli%
Usage
hotlink_protection command [parameter] [
<option 1> <param 1>[
<option n> <param n>]]
Example
The following command enables hotlinking protection on the domain example.com with the following parameters: protected content is image files with extensions JPG, JPEG, GIF, PNG, TIFF, exception is made only for domain jonny.blogs.sample.net:
hotlink_protection --update example.com -enabled true -protected-extensions jpg;jpeg;gif;png;tiff -friendly-domains jonny.blogs.sample.net
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Changes hotlinking protection settings. |
To add to the protection list (already including JPG, GIF) file extension BMP for the domain example.com: hotlink_protection --update example.com -protected-extensions bmp |
|
|
Retrieves current hotlinking protection configuration. |
To retrieve information on the hotlinking protection settings for domain example.org: hotlink_protection --info example.org |
|
|
Displays help on the utility usage. |
hotlink_protection --help |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Enables/Disables hotlinking protection. |
To turn the hotlinking protection off on the domain example.com: hotlink_protection --update example.com -enabled false |
|
|
Defines the protected file extensions. |
To add to the protection list (already including JPG, GIF) file extension BMP for the domain example.com: hotlink_protection --update example.com -protected-extensions bmp |
|
|
Defines friendly domains, which are allowed to hot-link the files. |
To allow users of blogger.com hotlink files hosted on domain example.com: hotlink_protection --update example.com -friendly-domains blogger.com |