Referer Validation
Referer validation allows you to control access sources based on the referer field carried in a request. CDN filters requests based on the configured blacklist or whitelist.
Notes
- This function is optional and is disabled by default.
- Whitelists and blacklists cannot be used simultaneously.
- A maximum of 100 domain names, each with up to four levels, can be added to the blacklist or whitelist.
- Domain names added to a blacklist or whitelist cannot include protocol names. Domain names are matched by prefix. For example, if ^example.example*.com$ is entered, both example.example.com and example.example01.com are matched.
- Domain names with ports cannot be added to referer whitelists or blacklists.
Procedure
- Log in to the VOD console.
- In the navigation pane, choose Domain Name Management.
- Locate the desired domain name and click Configure in the Operation column. On the displayed page, choose the Hotlink Protection Settings tab.
Figure 1 Hotlink protection settings
- Click Edit on the right of Referer Validation. The Referer Validation dialog box is displayed, as shown in Figure 2.
Configure referer validation parameters by referring to Table 1.
Table 1 Parameters Parameter
Description
Status
Whether to enable referer validation. By default, referer validation is enabled.
Type
Blacklists and whitelists are supported.
- Blacklist: Domains on the blacklist are blocked from accessing VOD resources. All other domains are allowed. If Include empty referer is selected, requests with empty referer in the HTTP header are also blocked.
- Whitelist: Only domains on the whitelist are allowed to access VOD resources. All other domains are blocked. If Include empty referer is selected, requests with empty referer in the HTTP header are also allowed.
Rule
Domain names in the blacklist or whitelist.
Domain names and IP addresses can be input at the same time and separated with semicolons (;). Wildcard domain names are allowed. A maximum of 100 domain names and IP addresses in total can be entered.
Example:
www.example.com;*.test.com;192.168.0.0
- Click OK.
It takes about 3 to 5 minutes for the referer validation settings to take effect.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
