pictures

G

Guest

hey all,

how do you keep users from right-clicking on your asp.net and saving your
images?

thanks,
rodchar
 
K

Kevin Frey

In practice, you can't prevent it entirely. You could trap the right-mouse
click event on each image and swallow it, but at the end of the day the user
can see the HTML source and grab the image that way if they really want (ie.
just put the image URL into the address bar).

Be warned, though, that playing these sorts of tricks on users is more
likely to just frustrate them than anything else, in my experience, so you
may as well stop worrying it. Even if you could prevent the image being
captured directly, they could just print-screen to capture the image and cut
it out that way. Different people will have different opinions, but my
opinion is that if you can't *entirely* prevent it, don't bother worrying
about it. If someone wants to get your image, they'll get it.

The fact that the web browser does what it does and how it works makes it
hard for you to secure your application against this type of "theft". The
same problem applies with Javascript - any Javascript you write is visible
to the browser, and can be viewed, so that can be taken also.

Kevin
 
K

Kevin Spencer

how do you keep users from right-clicking on your asp.net and saving your

You don't publish them to the web.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
 
G

Guest

Hello rodchar,

This is similar to a question asked earlier about preventing someone from
viewing the html source for a page. Short answer is you can't prevent them,
but you can make it more difficult. If you search for:
http://www.google.com/search?hl=en&q=javascript+prevent+right+click. You'll
find some good information about using javascript to intercept user right
clicks.

Another method you could use to help protect your intellectual property
would be to add copyright watermarks to all your images using an HttpHandler.
Again, searching
http://www.google.com/search?hl=en&lr=&q=httphandler+watermark will give you
plenty of good articles covering this technique.
 
M

Mark Rae

The same problem applies with Javascript - any Javascript you write is
visible to the browser, and can be viewed, so that can be taken also.

Even in an include file...?
 
G

Gabriel Magaña

Absolutely. .js include files are simply downloaded by the browser. Think
about it: Javascript is executed by the browser because it is client-side,
so how can the browser execute code it does not have? In all cases
javascript is downloaded to the client.
 
K

Ken Cox - Microsoft MVP

You can use a tool like this to make them into Flash movies.

http://www.zoomify.com/

Even so, it doesn't stop someone from using a screen capture program.

Ken
Microsoft MVP [ASP.NET]
 
K

Kevin Spencer

but you can make it more difficult. If you search for:
http://www.google.com/search?hl=en&q=javascript+prevent+right+click.
You'll
find some good information about using javascript to intercept user right
clicks.

First, preventing right-clicks doesn't prevent anything at all, except the
context menu. Second, what is the purpose of preventing people from copying
iages? To protect intellectual property. Making it more difficult to steal
something doesn't protect it, unless one makes it extremely difficult to
steal something, which preventing right-click doesn't do. In fact, since an
image in a web page is digital, it is dreadfully easy to copy and
distribute, especially on the Internet, which is nothing but computers
sending data to one another constantly. Third, the picture is already on the
client machine. It was already downloaded by the browser. A computer screen
may look like a television, but that's where the resemblance stops. Fourth,
preventing right-click is irritating to users, which drives valuable traffic
away from a web site. Fifth, preventing right-click is something only
newbies and amateurs do, which gives one's web site a reputation as having
been designed by an newbie or an amateur. Sixth, advising someone to do this
is like telling someone they can avoid AIDS by washing their hands after
sex. If they gets AIDS as a result, who is responsible for giving them the
bad advice?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.
 
K

Kevin Spencer

No screen capture program necessary. Windows has one built in. CTRL-PRINT
SCREEN.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A brute awe as you,
a Metallic hag entity, eat us.


Ken Cox - Microsoft MVP said:
You can use a tool like this to make them into Flash movies.

http://www.zoomify.com/

Even so, it doesn't stop someone from using a screen capture program.

Ken
Microsoft MVP [ASP.NET]

rodchar said:
hey all,

how do you keep users from right-clicking on your asp.net and saving your
images?

thanks,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top