How to stop other websites from embedding your videos
Lock your embedded videos to your own domain, so they play on your website and nowhere else.
Once a video is embedded on your website, anyone can open the page source, copy the iframe and put your video on their own site. They get your content, and you pay for the traffic. A domain lock stops that.
How the domain lock works
Every video on Vidlify has a setting called Allow embedding only on these domains. If you enter your domain there, the player checks where it is being loaded:
- on your website: the video plays as usual
- on any other website: the player refuses to load
- subdomains of your domain are allowed automatically, so
myblog.comalso coversshop.myblog.com
Under the hood this uses two things browsers already support: a security header that tells browsers on which sites the player may be shown, and a check of where the request comes from. Copying the embed code to another site doesn't help, because the address of that site is not on your list.
Set it up in under a minute
- Open the video in My files and go to its settings.
- Under Allow embedding only on these domains, enter your domain, for example
myblog.com. Several domains can be separated with commas. - Save.
That's it. Your existing embeds keep working, and copies on other sites stop playing.
Good to know
- Leave the field empty to allow embedding everywhere. That is the default.
- Direct links still open. Someone who opens the video link itself, for example from a chat, can still watch it. The lock is about other websites showing your player. To limit who can open the link at all, set the video to Private.
- Link previews are switched off for locked videos, so chat apps and social networks don't show the video inline either.
- Test it by opening your page in a private browser window after saving.
When to use it
- videos you made for your own website, course or shop
- content that other sites like to copy, such as tutorials or clips
- videos where you want every view to happen on your site, for example because you earn money with the page around it
For anything else, the open default is fine: it lets people share your video wherever they like.