473,748 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to prevent download of images on my pages.

I have images that I need to prevent the user from doing a right click and
selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com
Nov 18 '05 #1
11 3052
you cannot prevent it. you may take steps to make it more difficult but
there are always ways to get the picture. i'd suggest you copyright the
picture. if this doesn't work for you, handle the oncontextmenu event from
javascript which fires off when the right mouse button is clicked. there
won't be a menu so the picture won't be saved....for the most part.

a savvy user can always capture the entire screen and use paint to obtain
just the required pieces.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
I have images that I need to prevent the user from doing a right click and
selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com

Nov 18 '05 #2
Or you can just turn off JavaScript and the context menu will always be
shown. Or you can view the document source, get the image URLs and navigate
the browser to them directly. Point being that it is not hard to get around
the programmatic restrictions.

In the end, it may be more trouble then it is worth to restrict the
downloading of the images. What you might do is place some kind of
watermark on the images to make it more difficult for the person to use on a
non-legitimate way.

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
you cannot prevent it. you may take steps to make it more difficult but
there are always ways to get the picture. i'd suggest you copyright the
picture. if this doesn't work for you, handle the oncontextmenu event from
javascript which fires off when the right mouse button is clicked. there
won't be a menu so the picture won't be saved....for the most part.

a savvy user can always capture the entire screen and use paint to obtain
just the required pieces.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
I have images that I need to prevent the user from doing a right click and selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com


Nov 18 '05 #3
Any web site which has right-click disabled is a sign of an amateur web
site. If your clients don't mind having that reputation, go right ahead.
There is simply no way to prevent pictures from being downloaded by the
browser. That is, after all, what a browser does. If you see it in the page,
it's already on your computer.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:uY******** ******@TK2MSFTN GP10.phx.gbl...
Or you can just turn off JavaScript and the context menu will always be
shown. Or you can view the document source, get the image URLs and navigate the browser to them directly. Point being that it is not hard to get around the programmatic restrictions.

In the end, it may be more trouble then it is worth to restrict the
downloading of the images. What you might do is place some kind of
watermark on the images to make it more difficult for the person to use on a non-legitimate way.

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
you cannot prevent it. you may take steps to make it more difficult but
there are always ways to get the picture. i'd suggest you copyright the
picture. if this doesn't work for you, handle the oncontextmenu event from
javascript which fires off when the right mouse button is clicked. there
won't be a menu so the picture won't be saved....for the most part.

a savvy user can always capture the entire screen and use paint to obtain just the required pieces.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
I have images that I need to prevent the user from doing a right click

and selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com



Nov 18 '05 #4
well i wouldn't go as far as saying it is amateur, i think that is overly
hash. OP probably needs to protect his IP thru copyrighting, that will give
some legal recourse, or the watermark is a good idea, although a good dose
of paintshop pro will remove the watermark.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:ev******** ******@TK2MSFTN GP10.phx.gbl...
Any web site which has right-click disabled is a sign of an amateur web
site. If your clients don't mind having that reputation, go right ahead.
There is simply no way to prevent pictures from being downloaded by the
browser. That is, after all, what a browser does. If you see it in the page, it's already on your computer.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:uY******** ******@TK2MSFTN GP10.phx.gbl...
Or you can just turn off JavaScript and the context menu will always be
shown. Or you can view the document source, get the image URLs and navigate
the browser to them directly. Point being that it is not hard to get

around
the programmatic restrictions.

In the end, it may be more trouble then it is worth to restrict the
downloading of the images. What you might do is place some kind of
watermark on the images to make it more difficult for the person to use on a
non-legitimate way.

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
you cannot prevent it. you may take steps to make it more difficult but there are always ways to get the picture. i'd suggest you copyright the picture. if this doesn't work for you, handle the oncontextmenu event from javascript which fires off when the right mouse button is clicked. there won't be a menu so the picture won't be saved....for the most part.

a savvy user can always capture the entire screen and use paint to obtain just the required pieces.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
> I have images that I need to prevent the user from doing a right

click and
> selecting "Save Picture As"? How can I do this?
>
> --
> mo*******@nospa m.com
>
>



Nov 18 '05 #5
moondaddy wrote:
I have images that I need to prevent the user from doing a right click
and selecting "Save Picture As"? How can I do this?


No can do. You can make it so the the majority of users cannot save it
(ie, through JavaScript as was mentioned), but if someone really wants to
save it, they will.

Think about it: You have to transfer the picture to the web browser so it
can be displayed, right? In that case it already is: 1) in the client
computer's memory, and 2) probably in a cache locally too.

If you want to see how else you can try to protect your picture post here.

--
gabriel
Nov 18 '05 #6
Yes, digital watermarks are the only possible means to any real kind of
protection. Of course, it doesn't stop someone from copying the images, but
it does make it possible to track them down and prosecute.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:Oo******** ******@TK2MSFTN GP11.phx.gbl...
well i wouldn't go as far as saying it is amateur, i think that is overly
hash. OP probably needs to protect his IP thru copyrighting, that will give some legal recourse, or the watermark is a good idea, although a good dose
of paintshop pro will remove the watermark.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:ev******** ******@TK2MSFTN GP10.phx.gbl...
Any web site which has right-click disabled is a sign of an amateur web
site. If your clients don't mind having that reputation, go right ahead.
There is simply no way to prevent pictures from being downloaded by the
browser. That is, after all, what a browser does. If you see it in the page,
it's already on your computer.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:uY******** ******@TK2MSFTN GP10.phx.gbl...
Or you can just turn off JavaScript and the context menu will always be shown. Or you can view the document source, get the image URLs and

navigate
the browser to them directly. Point being that it is not hard to get

around
the programmatic restrictions.

In the end, it may be more trouble then it is worth to restrict the
downloading of the images. What you might do is place some kind of
watermark on the images to make it more difficult for the person to
use on
a
non-legitimate way.

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:O2******** ******@TK2MSFTN GP10.phx.gbl...
> you cannot prevent it. you may take steps to make it more difficult but > there are always ways to get the picture. i'd suggest you copyright the > picture. if this doesn't work for you, handle the oncontextmenu
event from
> javascript which fires off when the right mouse button is clicked.

there > won't be a menu so the picture won't be saved....for the most part.
>
> a savvy user can always capture the entire screen and use paint to

obtain
> just the required pieces.
>
> --
> Regards,
> Alvin Bruney [ASP.NET MVP]
> Got tidbits? Get it here...
> http://tinyurl.com/3he3b
> "moondaddy" <mo*******@nosp am.com> wrote in message
> news:%2******** **********@TK2M SFTNGP12.phx.gb l...
> > I have images that I need to prevent the user from doing a right click and
> > selecting "Save Picture As"? How can I do this?
> >
> > --
> > mo*******@nospa m.com
> >
> >
>
>



Nov 18 '05 #7
Here is solutions you might try.

1. Javaapplet showing the pictures.
2. Flash to show the pictures.


"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
I have images that I need to prevent the user from doing a right click and
selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com

Nov 18 '05 #8
Just for giggles, I will often check out "image stopper" attempts.
Very few cannot be easily outwitted. If you are only interested in
keeping "honest people honest" then go for it. Otherwise, just figure
any image that you put on the web can be downloaded and work around
it. If you are putting copies of images you want money for, try
putting a complex watermark on the image. Also, make the image very
low resolution. It will keep people from being able to use it for
much, plus saves download time. The Flash option might work better
than the Java applet, but even then, there is always Alt-Print-Screen.

On Mon, 16 Feb 2004 17:04:43 -0500, "George Ter-Saakov"
<no****@hotmail .com> wrote:
Here is solutions you might try.

1. Javaapplet showing the pictures.
2. Flash to show the pictures.


"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******* ***********@TK2 MSFTNGP12.phx.g bl...
I have images that I need to prevent the user from doing a right click and
selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com


Nov 18 '05 #9
Two words.....
screen capture

If you can see it, it is available to "steal".

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"George Ter-Saakov" <no****@hotmail .com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Here is solutions you might try.

1. Javaapplet showing the pictures.
2. Flash to show the pictures.


"moondaddy" <mo*******@nosp am.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
I have images that I need to prevent the user from doing a right click and selecting "Save Picture As"? How can I do this?

--
mo*******@nospa m.com


Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1794
by: python | last post by:
I have a script that downloads some webpages.The problem is that, sometimes, after I download few pages the script hangs( stops). (But sometimes it finishes in an excellent way ( to the end) and download all the pages I want to) I think the script stops if the internet connection to the server (from where I download the pages) is rather poor. Is there a solution how to prevent the script from hanging before all pages are downloaded? ...
8
9772
by: Alpenvrouwtje | last post by:
Hallo, Does anyone have a (simple?) javascript code for me to prevent that people take the photo's of my website while they use the right mouse button. I know that there are ways around this and people can still get the picture, but in that case it is much less easier and only the handy people can get it then. That already helps.
8
3312
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday, www.publicpen.com/staengl, when I point my browser there, the browser, instead of showing me the index.htm pages like it should, it instead tries to download it as an object. Why? Below are the contents of index.htm. Does anyone see anythging...
3
5528
by: ad.von.reeken | last post by:
Hello CSS-ers, My question is: Is it possible to use CSS to prevent the 'Gecko-underline' behind 'anchored' images on pages with patterned background images? The page http://www.vonreeken.demon.nl/test/gifline1.htm shows, well if a 'Gecko' browser is used of course, that these browsers let the background of images inherit the text-decoration attribute of the containing anchor.
5
1834
by: Roman | last post by:
I'm using a single css for 3 different layouts in my site, where everything is the same, but header images. Recently I've run a "download times" test and it turned out that my css is calling the 3 images every time a file is opened, increasing total download time, even though only one header image is actually appearing on that page. So, is this really happening when a user opens a single page? Should I better have 3 stylesheets instead...
0
1937
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
0
1940
by: Anne Snow | last post by:
7qs ----bSCMEc0pLIbJxmV9 Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px; TEXT-TRANSFORM: uppercase; COLOR: #ffffff; FONT-FAMILY: verdana,ar= ial,helvetica,sans-serif; TEXT-DECORATION: none } A.eyebrow:link { TEXT-DE= CORATION: none }</style><title>6</title><meta http-equiv=3DContent-Type co=
0
1817
by: Lynda Kilgore | last post by:
jGu ----qtHwhORV90yyhqJMOc Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html><head><style type=3Dtext/css>.eyebrow { FONT-WEIGHT: bold; FONT-SIZE= : 10px; TEXT-TRANSFORM: uppercase; COLOR: #ffffff; FONT-FAMILY: verdana,ar= ial,helvetica,sans-serif; TEXT-DECORATION: none } A.eyebrow:link { TEXT-DE= CORATION: none }</style><title>H</title><meta http-equiv=3DContent-Type co=
6
1451
by: Buz Waitz | last post by:
For some reason, even though all of my jpgs and gifs download to IE with the html on the stand alone server, and on computers within our peer-to-peer lan; they do not all download to clients over the internet. I've check and my scr specifications are identical. On the server, all the images are located in the same directory with the same protections. Any suggestions??? Thanks
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.