0
How an image can be protected from download?
How do you disable the "save image" option on the right-click, or just disabling the right-click on images?
3 Antworten
+ 6
Replace your image tag with this.
<img oncontextmenu="return false" src="whatever.png">
Just so you know, it won't make your website any secure but annoying, to be honest.
The users can still access the source code and save images without doing "Save Image As", through the Inspect Element option present in almost all browsers.
+ 5
you only can prevent the click actions, however the user still able to download it from the source code files found in developer tools in the browser.
+ 1
Ahlin Chan, Nikhil
Thank you guys for the answers, I got it.