Preventing Images From Being Saved on Right-Click

Search for a command to run...

No comments yet. Be the first to comment.
Check if a CSS feature is ready in a browser or not and apply code for both scenarios

The :has selector can be used to make a 100% iframe's container to be also 100%

Catch the first element type that's a child of a parent element
Use HTML5 properties and advanced CSS attributes for validation

Demo : http://s3.css.co.in/demo/mega-menu.html Code : https://gist.github.com/anjanesh/876b781b69fff9598fd73ffeda4b9318 Sorry for no explanation here. #top-menu-1 > div > a + div:hover has to be displayed as block too. For people who know CSS, I thin...

CSS
13 posts
Styles of the Web
More often than not, people have asked that if they uploaded their profile picture online, would it be possible to disable downloading of their profile photo by others.
There is no full-proof method of preventing images from being saved by the end user.
The user can hit print-screen and crop the image out of the screenshot, or can directly download the image by knowing the exact image URL from the page’s source code (HTML, CSS JavaScript) or using tools like FireBug, AdBlockPlus to extract the image URL.
Whats mentioned here is a simple common technique to prevent someone from saving the actual image by right-clicking on it & Save As or Get Image Location.
Set the image’s backgound-image property to the actual image you want it to show

