enable_hotlink_protection
Enable hotlink protection to prevent other sites from embedding your files and redirect blocked requests to a chosen URL while allowing referrer-listed domains.
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 |