English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm making a website, images and all. But I need the code to stop an image from being saved to someone's computer. Is there a way to do that?

2007-07-07 15:13:33 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

You can use client-side code like javascript to disable features like context menus (right-clicking) and Ctrl-C, but all someone has to do is turn off javascript and they can proceed with copying/downloading whatever they'd like.

Basically, there's no good guaranteed way to prevent it.

2007-07-07 15:24:36 · answer #1 · answered by Chad 5 · 1 0

The right click disable script doesn't work if the user has JavaScript disabled, in their browser
Besides, even if you use Flash, the person can always take a screen shot of your layout, and then cut out the part that interests him/her.

My suggestion is the following: don't be so scared that people will copy you. If you're just starting out, then there's an extremely low chance that people will want to copy anything from you.
If those pictures are so amazing, and you're the one who created them from scratch, then you can complain to a web host if someone else uses them.

But if someone just downloads them for personal use (they use it as a wallpaper on their PC, not giving it to anyone else), then there's nothing you can do about it. After all, you posted it for people to see.

2007-07-08 04:17:40 · answer #2 · answered by Vera 5 · 0 0

There are various tricks you can do that will keep some people from being able to do it.

For example, you can disable right-click in JavaScript. Lots of people won't be able to get past that, but some will be experienced enough to disable JavaScript.

Another example, you can do multiple layers with a 1-pixel transparent .gif sitting in front of the image you want to protect, expanded to cover the entire image. Then if someone right-clicks and saves the image, they get the 1-pixel transparent image only. Lots of people won't be able to get past that, but some will be experienced enough to view the source of the web page and find the actual URL to the image.

You can stick it in a Flash animation. Lots of people won' tbe able to get past that, but some will be experienced enough to screen-capture the image they want.

Practically speaking, if you let an image display on someone's screen, their computer is downloading it in order to display it, so it is on their machine. Once that happens, it is more or less our of your control -- it is not possible to prevent them (for sure) from saving a copy. You can make it difficult to save a copy, and you can lock out some people... but a handful of competent people will be able to get around whatever restrictions you choose to implement.

2007-07-07 15:50:45 · answer #3 · answered by McFate 7 · 1 0

No. You need to download it to display it. At the minimum a copy would be in the browser's cache. And the worst case, I can always take a screenshot of the browser screen.

So if you put it up, it's in the public eye, and you can't keep people from saving their own copy, period.

2007-07-07 16:25:39 · answer #4 · answered by Kasey C 7 · 0 0

the best option maybe is for you to create a protected flash based content for the images so you can show the pics in your page and still protect the images from being downloaded.

2007-07-07 15:41:24 · answer #5 · answered by blurredfringe 3 · 0 1

you looking for a java called a no right click script try this
http://java-scripts.net/No-Right-Click-Javascripts

2007-07-07 15:20:45 · answer #6 · answered by zircon 5 · 0 1

fedest.com, questions and answers