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.
- Whitelisting and blacklisting cannot be used simultaneously.
- A maximum of 100 domain names of up to four levels can be added to the blacklist or whitelist.
- The domain name configured in a blacklist or whitelist cannot contain a protocol name. The domain name is matched by prefix. For example, if you enter example.example01.com, example.example01.com/123 and example.example01.com.cn are also matched.
Procedure
- Log in to the VOD console.
- In the navigation pane, choose Domain Name Management.
- Click Settings in the row containing your domain name and then click the Hotlink Protection Settings tab.
- Click Referer Validation. The page for configuring referer validation is displayed.
- Turn on the switch. Configure referer validation parameters. See Figure 1.
Domain names with ports cannot be added to referer whitelists/blacklists.
Table 1 describes the parameters.Table 1 Parameter description Parameter
Description
Type
The blacklist and whitelist are supported.- Referer blacklist allows all domains access to CDN except for the domains added to the blacklist.
- Referer whitelist denies all domains access to CDN except for the domains added to the whitelist.
An empty referer indicates that the referer field in an HTTP request header is empty or no referer exists.- If you select Blacklist and Include empty referer, a request with empty referer will be denied.
- If you select Whitelist and Include empty referer, a request with empty referer will be allowed.
Rule
Domain name 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 supported. A maximum of 100 domain names and IP addresses 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 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