Jump to content

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


Tech Support

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.

  • Like 3
Link to comment
Share on other sites

  • 2 years later...
On 7/31/2017 at 1:11 PM, Tech Support said:

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.

 

does this code work with the most recent release of KVS to redirect traffic from sites that have crawled all our videos?

Edited by Adulty Webmaster
  • Like 1
Link to comment
Share on other sites

5 hours ago, Adulty Webmaster said:

does this code work with the most recent release of KVS to redirect traffic from sites that have crawled all our videos?

Should work, it doesn't depend on KVS version. But if you see it is not working somewhere, please create support ticket and provide a link where it is not working.

  • Like 1
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.

×
×
  • Create New...