I would like to prevent a user by downloading images on my site. I have scrambled my code but they can just right click and press save image. How would I make something like an alert popup when touching and right clicking an image?
Asked
Active
Viewed 19 times
0
-
1You can't prevent that – Roberto Zvjerković Apr 06 '21 at 19:36
-
I have seen sights prevent that which is how I know that it is possible – Ethan O'Brien Apr 06 '21 at 19:37
-
1You can change the right click behavior, but you can't prevent a user from downloading your images. You can only make it a little harder to do. Anything displayed in the browser can be stolen, a way or another (by finding the image's URL in the browser's network tab, by taking a screenshot, etc.) – blex Apr 06 '21 at 19:39
-
1CSS: pointer-events: none; – Danial Dezfouli Apr 06 '21 at 19:46