How do I add an image to a web page so no one can download it?

+1 vote
I saw some web pages where when I right click on the image, there isn't a download now link
asked Jul 10, 2017 by LostInSpace88 (30 points)

1 Answer

0 votes
In simple terms, this is impossible. However you try to prevent it, in the end, even an non-savvy web user can just take a screenshot of your web site.

However, as a simple deterrent you can just create a <div> that is the same dimensions as your image, and then set the image as background to this <div> via CSS.  Then when a user right clicks on an image to download it, this option won't appear in the menu. It should also prevent this image from appearing in search engine search results as it is only referenced in CSS.
answered Jul 12, 2017 by Lovecode (640 points)
Lovecode logo