v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mime
Direct Link Protection (Hotlink)

Return domains with hotlink protection

This function lists domains with hotlink protection.

Important:

When you disable the Web Server role, the system disables this function.

get/Mime/list_hotlinks

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "list_hotlinks",
  "module": "Mime",
  "result": {
    "data": {
      "allow_null": 1,
      "extensions": "jpg,jpeg,gif,png,bmp",
      "redirect_url": "http://redirect.example.com/",
      "state": "disabled",
      "urls": [
        "http://example.com/"
      ]
    },
    "status": 1
  }
}