Hi!
It’s not possible to protect images from being downloaded.
The above CSS code will disable all the pointer events (including to right click) for all images. However, the user will still be able to download them using the “Inspect elements” option or by installing a browser add-on.
If you still want to disable the pointer events for images it is better if you do this only for specific images that you really need. So, … instead of targeting all images you can create a class and apply that class to the image.
Here is the updated CSS code
.no-events{
pointer-events: none;
}
Here is how:
-
Add the CSS code to your website
-
Add the class to the image that you want to disable the events
Hope this helps!