Beside HLS encryption, a very useful option to secure your videos,  is to restrict the domains on a global level. When configured, this policy will apply to all videos in your account.

If you wish to restrict domains just for some videos, you can refer to the corresponding article - Restricting A Single Video To Play On Certain Domain(s).

To set a global rule, click on the account settings in the bottom-left corner of the screen and then go to "Allowed Domains".

Move the toggle to the left, enter only the top level domain (without www & https) and click on the button "WHITELIST THIS DOMAIN". You can add as many domains as you wish and this policy will apply to all your videos, by default.

Here are some working examples:

example.com
https://example.com
http://example.com/

Did this answer your question?