The anti-leech function is based on the HTTP referer mechanism where the referer, namely an HTTP header field, is used for source tracking, source recognition and processing. You can configure a referer black list or white list to identify and filter visitors in order to limit access to your CDN resources.
Currently, the anti-leech function supports the black list or white list mechanism. After a visitor initiates a request for a resource, and the request arrives at a CDN node, the CDN node filters the identity of the visitor based on the presets of the anti-leech black list or white list. If the identity complies with the rules, the visitor can access the requested resource; if the identity does not comply with the rules, the request is forbidden and a 403 response code is returned.
This function is optional and is disabled by default.
To enable this function, you can select Refer Blacklist or Refer Whitelist to edit. You can only select one of these options to edit.
A null Referer field can be used to access resources on a CDN node (that is, whether a web browser can use its URL to directly access resources on a target URL).
Log on to the
On the left-side navigation pane, click CDN Domain Name List.
Select a domain to enter the management page.
On the left navigation bar, click Anti-Leech.
Click Manually Modify to set the referer black list or white list.