This function adds hotlink protection for a site. Hotlink protection will redirect users to another URL if they navigate to a file with a specified extension, but an allowed URL did not refer them.
Important:
When you disable the WebServer role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Mime \ add_hotlink \ urls='http://example.com/' \ extensions='foo' \ redirect_url='http://redirect.example.com/'
{- "apiversion": 3,
- "func": "add_hotlink",
- "module": "Mime",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}