Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to prevent saving images from my site?

I have restricted the right click option in my web page, but in IE it shows icons to Save Image, Print, Mail etc . I want to remove all of these. Is this possible?

like image 204
Testadmin Avatar asked Jan 07 '10 07:01

Testadmin


People also ask

How do I stop someone from Screenshotting a website?

One common method to prevent image theft is simply to disable your website visitors' ability to right/alt-click on images to prevent them from directly saving your images. You might think that this is not particularly effective because people could easily take screenshots of your images.

How do I make an image not downloadable in HTML?

The simple answer is "you cannot do that". You might be able to put something on the server side that will check the referer before serving the image, but even that is not 100% guaranteed.

Can a website tell if you save a picture?

A website can know if you take a screenshot of if you use the browser to do it. A website can also know if you take a screenshot using the print screen button on your keyboard. However, if you use a program like the Snipping Tool, the website cannot tell you took one.


3 Answers

It seems like everyone else who answered here didn’t read the question.

I have restricted right clicking option in my web page , But IN IE it shows Icons to Save Image, print , mail etc . I want to remove all of these . IS it possible ??

Yes, it is possible to remove these icons. Just put the following in the <head> of your document.

<meta http-equiv="imagetoolbar" content="no" />

As mentioned in the other answers, users will still be able to get the images if they really want to, no matter how hard you try to prevent it. If you don’t want the images to be copied, you shouldn’t use them on a website.

like image 59
Mathias Bynens Avatar answered Sep 20 '22 03:09

Mathias Bynens


It sounds like you're talking about the Image Toolbar in Internet Explorer. You can disable it with this code:

<html>
<head>
<meta http-equiv="imagetoolbar" content="no" />
</head>

</html>

Or, directly applied to an image:

<img src="test.gif" galleryimg="no" />
like image 43
leepowers Avatar answered Sep 20 '22 03:09

leepowers


No it's not possible. The user can see the image in the browser and thus the browser (and the user) has a copy. You can try and restrict that with nasty (and ill-advised) right-click JS hacks and the like but ultimately if you send something to someone to see or read, what they do with it is beyond your control when you don't control the device they're using.

like image 42
cletus Avatar answered Sep 24 '22 03:09

cletus