HariSingh Posted April 23, 2022 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
derricksrandomviews Posted April 23, 2022 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
HariSingh Posted April 23, 2022 Author Posted April 23, 2022 (edited) Thank you Sir Edited April 23, 2022 by HariSingh change in answer. got it working
MarkAnthony Posted January 19, 2023 Posted January 19, 2023 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment