VOD offers hotlink protection solutions that allow you to use a key or referer field to control playback permissions.
Note:
Once configured, it will take around 5 minutes for the hotlink protection to take effect on all CDN nodes.
Referer Hotlink Protection
- Log in to the VOD console and select Application Management on the left sidebar.
- Find the target application and click its name.
- Select Distribution and Playback > Domain Name on the left sidebar.
- Click Set in the row of the target domain name to enter the configuration page.
- Under the Access Control tab, toggle on Referer Hotlink Protection, and complete the following settings:
- Whether to allow empty referer
- Referer Type: If you select Blocklist, the domains entered will be blocked; if you select Allowlist, only requests from the domains entered will be accepted.
- Click Confirm.
Note:
For more information, see Referer Hotlink Protection.
Key Hotlink Protection
- Log in to the VOD console and select Application Management on the left sidebar.
- Find the target application and click its name.
- Select Distribution and Playback > Domain Name on the left sidebar.
- Click Set in the row of the target domain name to enter the configuration page.
- Under the Access Control tab, toggle on Key Hotlink Protection, and complete the following settings:
- Click Generate to generate a hotlink protection key.
- Copy the key.
- Click Confirm.
Note:
- For more information, see Key Hotlink Protection.
- Currently, the preview feature of key hotlink protection does not support audio files.
Was this page helpful?