HariSingh Posted April 23, 2022 Share Posted April 23, 2022 Site URL: https://www.harisingh.ca/ Hi. I've noticed that as a visitor, I can right click on images on my website and copy or save them. How do I prevent visitors from doing this? Thank you Link to comment
derricksrandomviews Posted April 23, 2022 Share Posted April 23, 2022 (edited) You can't, not completely. You can disable right click. This code goes into settings advanced/header code: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $(this).bind("contextmenu", function (e) { e.preventDefault(); }); }); </script> Edited April 23, 2022 by derricksrandomviews Link to comment
HariSingh Posted April 23, 2022 Author Share Posted April 23, 2022 (edited) Thank you Sir Edited April 23, 2022 by HariSingh change in answer. got it working Link to comment
MarkAnthony Posted January 19 Share Posted January 19 For the life of me I can not protect my images from being copied! I am on the basic sub, any help would be great. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment