enable_hotlink_protection
Stop other websites from directly embedding your images and files by enabling hotlink protection. Specify allowed referrer URLs, file extensions, and an optional redirect URL 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 |