Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found that in Chrome, downloading video is easy: right-click, save as... ready.
I also found a piece of code that should prevent this:
$(document).ready(function(){
$('#videoElementID').bind('contextmenu',function() { return false; });
});
My question is: Where should i put it?
Anyone with experience on this?
Thanx,
Cas
Comments
Comment #1
caskraker CreditAttribution: caskraker commentedForget it. For anyone interested i found a module that prevents all right-click action on your entire site:
Copy Prevention.
It works wonders on disabling the right/click context menu in Chrome, allowing also to prevent text and images to be copied. I tested this on FF and Safari too.
You can also exclude usergroups from the regime, by default the admin is excluded.