Ever wondered how to disable the ability to download a self-hosted video on your divi website? Updated Solution 2019

Posted by George Nicolaou

On 18 Aug, 2019
George Nicolaou - Senior Web Developer

New javascript way Theme Options --> Integrations --> head

<script>
 window.onload = function() {
 videos = document.querySelectorAll('video');
 [].forEach.call(videos, function(video) {
 video.setAttribute("controlsList", "nodownload");
});
 };
</script>

1 Comment

  1. altyazili

    Very interesting details you have noted, thanks for posting. Allyn Theodore Samuella

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This
Divi Theme Code SnippetsEver wondered how to disable the ability to download a self-hosted video on your divi website? Updated Solution 2019