enable_hotlink_protection
Protect cPanel-hosted files from unauthorized hotlinking by allowing specified referrer URLs and file extensions, with an optional redirect for blocked requests.
Instructions
Enable hotlink protection
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"urls": "<urls>"
},
"name": "enable_hotlink_protection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | Comma-separated list of allowed referrer URLs | |
| extensions | No | Comma-separated file extensions to protect | jpg,jpeg,gif,png,bmp,svg |
| redirect_url | No | URL to redirect blocked requests to |