I want to prevent users from right-clicking on image on my site and saving them. I know there are many work-around for this, but I still need to do it.
Any help?
Also, this site has this feature - http://finsix.com/dart/#section-colors
It can be html, javascript, jquery. Any solution will do.
on("contextmenu", "img", function(e) { return false; });
Right click on the image. 3.) Go to 'Save Image As Type 2.0' 4.) Select which file type you would like to save the image (PNG, JPG, PDF, or WebP) Features: 1- Easy To Use.
Dragging is the quickest and simplest way to save an image on a Mac, but it offers less control than right clicking, as you can't name the file. 1. Left click and hold on the image to be saved.
$("body").on("contextmenu", "img", function(e) {
return false;
});
This is the "new" way in jQuery. Bear in mind anyone with technical knowledge would be able to get around this.
Use the image as a background-image of a div element, This will keep the easy minded people away from saving it ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With