Skip to main content

CDN Resource - User Agent ACL

This setting is available in small, large, dynamic(aksela) and streaming resource types.

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_user_agent_acl

Restricts a specific status with a user agent access control list (ACL).

Boolean

Yes

user_agent_acl

Main parameter for the user agent access control list. Maximum 50 items can be entered.

Object

Yes

user_agent_acl.whitelist

Specifies that the user agent ACL contains only the allowed entries.This parameter can take multiple values. The parameters user_agent_acl.whitelist and user_agent_acl.blacklist do not work simultaneously.

Array

Yes

user_agent_acl.blacklist

Specifies that the user agent ACL contains only the forbidden entries. This parameter can take multiple values. The parameters user_agent_acl.whitelist and user_agent_acl.blacklist do not work simultaneously.

Array

Yes

user_agent_acl.blacklist.type

Specifies the type of forbidden entries (e.g., browser, device, etc.).

String

Yes

user_agent_acl.blacklist.value

Specifies the values of the forbidden entries. Should not contain the characters "~{}%".

String

Yes

user_agent_acl.whitelist.type

This term specifies the type of the user agent access control list (ACL) whitelist. For example, browsers, devices, etc.

String

Yes

user_agent_acl.whitelist.value

This term specifies the values of the allowed entries in the user agent access control list whitelist. It defines which user agents are permitted. Should not contain the characters "~{}%". The character limit is defined as a maximum of 100.

String

Yes

Payload

CODE
{
   "status_user_agent_acl": true,
   "user_agent_acl": {
         "type":"blacklist",
         "whitelist":[],
         "blacklist":[
            {
             "type":"contains",
             "value":"range"
            },
            {
              "type":"exact_match",
              "value":"test"
            },
            {
              "type":"contains",
              "value":"da*dy"
            }
          ]
     }
}
CODE
{
   "status_user_agent_acl": true,
   "user_agent_acl": {
         "type":"whitelist",
         "whitelist":[
            {
             "type":"contains",
             "value":"range"
            },
            {
              "type":"exact_match",
              "value":"test"
            },
            {
              "type":"contains",
              "value":"da*dy"
            }
          ],
         "blacklist":[]
     }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.