473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

pictures

hey all,

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

thanks,
rodchar
Mar 2 '06 #1
9 1047
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

"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
hey all,

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

thanks,
rodchar

Mar 2 '06 #2
> how do you keep users from right-clicking on your asp.net and saving your
images?
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.
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com... hey all,

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

thanks,
rodchar

Mar 2 '06 #3
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...nt+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&l...dler+watermark will give you
plenty of good articles covering this technique.
--
enjoy - brians
http://www.limbertech.com
"rodchar" wrote:
hey all,

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

thanks,
rodchar

Mar 2 '06 #4
"Kevin Frey" <ke**********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP14.phx.gbl...
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...?
Mar 2 '06 #5
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.
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2*****************@TK2MSFTNGP12.phx.gbl...
"Kevin Frey" <ke**********@hotmail.com> wrote in message
news:e%****************@TK2MSFTNGP14.phx.gbl...
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...?

Mar 2 '06 #6
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" <ro*****@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
hey all,

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

thanks,
rodchar

Mar 3 '06 #7
> but you can make it more difficult. If you search for:
http://www.google.com/search?hl=en&q...nt+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.
"brians[MCSD]" <br********@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com... 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...nt+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&l...dler+watermark will give
you
plenty of good articles covering this technique.
--
enjoy - brians
http://www.limbertech.com
"rodchar" wrote:
hey all,

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

thanks,
rodchar

Mar 3 '06 #8
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" <BA**********@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl...
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" <ro*****@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com...
hey all,

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

thanks,
rodchar


Mar 3 '06 #9
thanks everyone this helped.

"rodchar" wrote:
hey all,

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

thanks,
rodchar

Mar 3 '06 #10

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

Similar topics

4
by: Bob Bedford | last post by:
I've been able to parse the XML files used to update my database. Now, I receive image in XML files, like this: <PICTURES COUNT="3" CDATA="1"> <PIC NR="1"><!]></PIC> <PIC...
0
by: JakeC | last post by:
Hey all, I'm currently redesigning a website that a friend and I started about a year ago. It is a daily surf report so when choosing the best script/language to use for the new design, I found...
1
by: Sven Steinacker | last post by:
Hi, XSLT files generated by Microsoft InfoPath applied to an applicable XML file produces quite decent HTML presentations. At least with Mozilla and, of course, IE 6.0 the results look the same...
0
by: Marcel - IDUG Europe 2005 | last post by:
Visit the blog for a virtual experience of the conference. Check out the blog at: http://idugeurope.blogspot.com Here are some previous posts: - Pictures Live on Tuesday
3
by: Pedro Maria Ferro da Cunha | last post by:
I spend a lot of time making 2 thousand pictures and saving them as an article name. jpg. I have a table with the article name and name of the file in jpg (format). How can I make an...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
13
by: gooze | last post by:
Hello I am working on an applicaion that shows several pictures on a webpage. These pictures are saved in a MySQL DB as BLOB. I noticed, that the web server suffers in its performance by...
1
by: suresh_punniyakkodi | last post by:
Hellow, I am suresh, i am developing one project in VB. I need your help. My question is how to zoom pictures(zoom in and zoom out) in Visual Basic (like Photo Editor). ...
4
by: Zeljko Bilandzija | last post by:
Hy, could someone help me in this: In design mode, i want to put pictures in database. I made column named pics, and its type as image. How can I put pictures or some address of these pictures...
2
by: Tyler | last post by:
I need to have a form that displays a group of 20 pictures in 4 rows of 5 pictures. The pictures are of people. Each Subject record has a picture field. I have a query written that selets the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.