You can configure a User-Agent blacklist or whitelist to authenticate and filter visitors. This can restrict access to Dynamic Route for CDN (DCDN) resources and improve DCDN security. This topic describes how to configure a User-Agent blacklist or whitelist.
- User-Agent blacklist: The User-Agent fields in the blacklist cannot be used to access resources.
If your User-Agent field is added to the blacklist, a request with the User-Agent field can be sent to a DCDN node. However, the DCDN node rejects the request and returns a 403 error. The requests that contain the User-Agent fields in the blacklist are recorded in DCDN logs.
- User-Agent whitelist: Only User-Agent fields in the whitelist can be used to access resources.
- Log on to the DCDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, find the domain name that you want to manage, and click Configure in the Actions column.
- In the left-side navigation pane on the details page of the specified domain, click Access Control.
- On the right side of the page that appears, click the User-Agent Black/White List tab.
- Turn on User-Agent Black/White List, and configure a User-Agent Blacklist or Whitelist as prompted.
Parameter Description TypeThe following two types are supported:
The User-Agent fields in the blacklist cannot be used to access the current resources.
Only User-Agent fields in the whitelist can be used to access the current resources.
Blacklists and whitelists are mutually exclusive. The most recent configuration takes effect.
Rules When you configure the User-Agent fields, separate values with vertical bars (|). The User-Agent fields can contain wildcards (*), such as
- Click OK.