How do you block image downloads in html?

pkypkypky

Golden Member
Apr 18, 2001
1,542
0
76
I want to put up an album that does not allow image downloads. btw, I only have limited html skills. Usually use frontpage. TIA :)
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
Don't bother. You'll only annoy people and anyone who wants your images will be able to get them no matter what you do anyway.

If you really want to go ahead and do it, there are plenty of javascript snippets available. Just search for something like "javascript block right click" or "javascript block context menu".
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Agreed. All you can do is block the right click, or even worse, display some stupid copyright box everytime someone right clicks the image. If it is displayed on the user's monitor then the data is in memory, and they can easily capture it and save it to disk using any number of free capture tools.

If you're really worried about unauthorized image use watermark them.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Your only real option is to add a water mark to the images so no one will want to download them.
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
You COULD embed them in flash or something odd like that, but then again, they have the .swf file in their data cache, and can pull them out. I had a site that disabled right click, and I was able to grab the images just fine. You can watermark the images, and put the images in a secured directory, but again, that only goes so far.
 

FeuerFrei

Diamond Member
Mar 30, 2005
9,144
929
126
Or you could create a transparent .gif and transpose it over the image you desire to block.

But really, any image that shows up on someone's screen can be stolen.
 

pkypkypky

Golden Member
Apr 18, 2001
1,542
0
76
Okay, this is only so casual users can't download the images and keep it on their hdds. Not really about security or anything, not even going to be a public webpage. So disabling right click is the easiest? Anything else? Is there anyway to disable rights to the image directory or how do you hide it?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Why do you give a ****** if they save your images anyway? You obviously want them to be able to see them, what's the problem if they save them?
 
Jun 4, 2005
19,723
1
0
Originally posted by: pkypkypky
Okay, this is only so casual users can't download the images and keep it on their hdds. Not really about security or anything, not even going to be a public webpage. So disabling right click is the easiest? Anything else? Is there anyway to disable rights to the image directory or how do you hide it?

As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music. It just eems unprofessional. If I want your images, I'll get them and nothing you can do will stop me.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Is there anyway to disable rights to the image directory or how do you hide it?

If they don't have any rights to the images how are they supposed to see them in on the web page?
 

pkypkypky

Golden Member
Apr 18, 2001
1,542
0
76
Originally posted by: notfred
Why do you give a ****** if they save your images anyway? You obviously want them to be able to see them, what's the problem if they save them?

Why ask why? All I'm asking for is help. Obviously, I have my reasons so why does it bug you so much?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music.

Oh man, not sure. I think autoplaying music is worse. The most annoying thing are animated ads that start blasting stupid music as soon as the page is done loading. Way to go, marketing dweebs: I will never buy anything from you again.
 
Jun 4, 2005
19,723
1
0
Originally posted by: Markbnj
As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music.

Oh man, not sure. I think autoplaying music is worse. The most annoying thing are animated ads that start blasting stupid music as soon as the page is done loading. Way to go, marketing dweebs: I will never buy anything from you again.

It only takes a second to turn down the volume. I navigate pages with my mouse, back, forward, refresh, stop, all done by mouse.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: pkypkypky
Originally posted by: notfred
Why do you give a ****** if they save your images anyway? You obviously want them to be able to see them, what's the problem if they save them?

Why ask why? All I'm asking for is help. Obviously, I have my reasons so why does it bug you so much?

Because everyone alive finds it incredibly annoying when people break the functionality of thier web browsers on purpose.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
It only takes a second to turn down the volume. I navigate pages with my mouse, back, forward, refresh, stop, all done by mouse.

Grats :). It still sucks when ads play music.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Because everyone alive finds it incredibly annoying when people break the functionality of thier web browsers on purpose.

And disabling javascript will defeat most of the methods used.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: LoKe
Originally posted by: Markbnj
As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music.

Oh man, not sure. I think autoplaying music is worse. The most annoying thing are animated ads that start blasting stupid music as soon as the page is done loading. Way to go, marketing dweebs: I will never buy anything from you again.

It only takes a second to turn down the volume. I navigate pages with my mouse, back, forward, refresh, stop, all done by mouse.
I'd vote for music being the worst. Turning down volume isn't really a fix if you're listening to other music. If they're lucky I'll take the time to track down and adblock the audio but most of the time the page gets swiftly closed.

Far worse than trying to disable right clicking is entire sites built in flash. You can't right click those, you can't see where you're navigating with the status bar, you can't shut off the music (ok, so flash is worse than just music).
 

Jeff7

Lifer
Jan 4, 2001
41,596
19
81
Originally posted by: LoKe
Originally posted by: pkypkypky
Okay, this is only so casual users can't download the images and keep it on their hdds. Not really about security or anything, not even going to be a public webpage. So disabling right click is the easiest? Anything else? Is there anyway to disable rights to the image directory or how do you hide it?

As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music. It just eems unprofessional. If I want your images, I'll get them and nothing you can do will stop me.

Plus there's an extension for Firefox that deals iwth the right-click thing. Ironically, it's called Allow Right-Click.

That transparent GIF or maybe even PNG file transposed over the original image would probably do the best job. But then, I have no clue how to do this.

Either way, once a person views your website, the pictures are automatically put on their hard drive in their Internet cache folder. No way to prevent that.

Plus, put all the protection you want into your site - PrintScreen still works just fine.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
Originally posted by: Jeff7
Originally posted by: LoKe
Originally posted by: pkypkypky
Okay, this is only so casual users can't download the images and keep it on their hdds. Not really about security or anything, not even going to be a public webpage. So disabling right click is the easiest? Anything else? Is there anyway to disable rights to the image directory or how do you hide it?

As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music. It just eems unprofessional. If I want your images, I'll get them and nothing you can do will stop me.

Plus there's an extension for Firefox that deals iwth the right-click thing. Ironically, it's called Allow Right-Click.

That transparent GIF or maybe even PNG file transposed over the original image would probably do the best job. But then, I have no clue how to do this.

Either way, once a person views your website, the pictures are automatically put on their hard drive in their Internet cache folder. No way to prevent that.

Plus, put all the protection you want into your site - PrintScreen still works just fine.

One way to put a transparent GIF over an image is to put the GIF in a DIV and set the picture you want to display as the background of the DIV through CSS.
 
Jun 4, 2005
19,723
1
0
Originally posted by: Jeff7
Originally posted by: LoKe
Originally posted by: pkypkypky
Okay, this is only so casual users can't download the images and keep it on their hdds. Not really about security or anything, not even going to be a public webpage. So disabling right click is the easiest? Anything else? Is there anyway to disable rights to the image directory or how do you hide it?

As a web developer, I must say that the javascript function to block right-click is the most annoying thing I can come across on a website. This tops auto-playing music. It just eems unprofessional. If I want your images, I'll get them and nothing you can do will stop me.

Plus there's an extension for Firefox that deals iwth the right-click thing. Ironically, it's called Allow Right-Click.

That transparent GIF or maybe even PNG file transposed over the original image would probably do the best job. But then, I have no clue how to do this.

Either way, once a person views your website, the pictures are automatically put on their hard drive in their Internet cache folder. No way to prevent that.

Plus, put all the protection you want into your site - PrintScreen still works just fine.

View -> Source.
Alt + VO
 

Lonyo

Lifer
Aug 10, 2002
21,938
6
81
Do whatever IMDB does to stop you downloading their images.
Although any image can be copied with PrintScreen.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Do whatever IMDB does to stop you downloading their images.
Although any image can be copied with PrintScreen.

They seem to do the transparent GIF thing mentioned earlier, a quick view source shows that the real image is set to the background in the div and you can still easily download the image from that URL.
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
I seen a cool method before where someone put a transparent gif over top of the actual image, so when you right click to download the image all you get is a blank image