Hotlink Protection
This setting is available in small, large and streaming resource types.
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid} |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
status_hl_protection | Enables hotlink protection which prevents other websites from directly linking to your content. The values of the status_hl_protection must be any of the; “true”, “false”. | Boolean | Yes |
hl_protection_domains | When enabled, you can also set specific domains to be excluded from hotlink protection by adding them to whitelist. | Array | Yes |
Payload
{
"resource_uuid": "****-*****-****-*****",
"status_hl_protection": true,
"hl_protection_domains": [
"domain.test.com",
"domain2.test.com"
]
}
Hotlink Protection for Page Rule
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid} |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
status_file_extension | The values of the status_hl_protection must be any of the; “true”, “false”. | Boolean | Yes |
page_rule | This feature allows you to create customized page rules for a specific path. | Object | Yes |
page_rule.rule_id | ID information for the page rule is entered. | Integer | Yes |
hl_protection_type | The values of the hl_protection_type must be any of the; “whitelist”, “blacklist”. | String | Yes |
hl_protection_domains | When enabled, you can also set specific domains to be excluded from hotlink protection by adding them to whitelist. | Array | Yes |
include_blank_referer | The values of the include_blank_referer must be any of the; “true”, “false”. | Boolean | Yes |
Payload
{
"resource_uuid":"****-****-***-****",
"status_file_extension": true,
"page_rule": [
{
"rule_id": 1,
"hl_protection_type":"whitelist",
"hl_protection_domains": [
"test.com","*.test.com","1.1.1.1"],
"include_blank_referer":true
}
]
}