Referer Validation
Referer validation allows you to control access sources based on the referer field carried in an HTTP request. CDN allows or rejects playback 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 1,000 domain names can be added to a blacklist or whitelist.
- Domain names added to a blacklist or whitelist are matched using regular expressions. For example, if you add ^http://test.*com$ to a blacklist or whitelist, http://test.example.com and http://test.example01.com are matched.
Prerequisites
- The ingest domain name and streaming domain name have been added and associated.
- You have configured CNAME records at your domain names' DNS provider.
Procedure
- Log in to the Live console.
- In the navigation pane, choose .
- Click Manage in the Operation column of the desired streaming domain name.
- In the navigation pane, choose Basic Settings > Access Control.
- Click the edit icon on the right of . The Referer Validation dialog box is displayed on the right.
- Toggle on the switch and configure related parameters.
Figure 1 Configuring referer validation
Table 1 describes the parameters.
Table 1 Referer validation parameters Parameter
Description
Type
Blacklists and whitelists are supported.- Referer blacklist allows requests from all domains except those in the blacklist.
- Referer whitelist denies requests from all domains except those in the whitelist.
You can control whether to allow requests with an empty referer field, that is, whether to allow access through the browser address bar.
Rule
Domain name in the blacklist or whitelist.
- You can input 1 to 100 domain names. Use semicolons (;) to separate domain names.
- Domain names are matched using regular expressions. If you enter ^http://test*.com$, http://test.example.com and http://test.example01.com are matched.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.