Jump to content

How to disable embedding your content on other sites and redirect embeds to your site


Tech Support
 Share

Recommended Posts

KVS allows embedding of your content by default.

In order to disable that go to Settings -> Embed player settings and remove all video formats from display slots:

embedding_disable.png.c0285a61c9fc8c3bc5eafdb3d1c9714f.png

Your embed codes will not be showing video player anymore.

Now if you also want to redirect traffic from all other sites that used your embed codes, you can add this block of code in Embed code template:

<script>
if (window.top != window.self) {
window.top.location = '{{$data.canonical_url}}';
} else {
window.location = '{{$data.canonical_url}}';
}
</script>

Then all users which open other sites with your embed codes will be redirected to your videos that were embedded.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...