473,479 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Protecting Images in ASP.NET

Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren't there more ways to deter people from
stealing images?

Joy
Jul 21 '05 #1
10 1589
You could try to pipe requests for gif etc through an ihttphandler that
checked the referrer and rejected those that did not come as part of a whole
page request on your server.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...
Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren't there more ways to deter people from
stealing images?

Joy

Jul 21 '05 #2
You could try to pipe requests for gif etc through an ihttphandler that
checked the referrer and rejected those that did not come as part of a whole
page request on your server.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...
Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren't there more ways to deter people from
stealing images?

Joy

Jul 21 '05 #3
You can also cut image to the pleases and put all part's in to one
table. User should download all parts separately and when join all pleases.

Also you can create getimage.aspx?img=name&code=id, which will return
image only once for each given code. And disable any cache.
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...
Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren't there more ways to deter people from
stealing images?

Joy

Jul 21 '05 #4
You can also cut image to the pleases and put all part's in to one
table. User should download all parts separately and when join all pleases.

Also you can create getimage.aspx?img=name&code=id, which will return
image only once for each given code. And disable any cache.
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...
Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren't there more ways to deter people from
stealing images?

Joy

Jul 21 '05 #5

Thanks for the advice - I'm looking for code examples of how to do what
you just descriped on the internet - do you have any suggestions of
where to look?

Joy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #6

Thanks for the advice - I'm looking for code examples of how to do what
you just descriped on the internet - do you have any suggestions of
where to look?

Joy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #7
start here

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconcustomhttpmodules.asp

Work out how to check the referrer in the Application_BeginRequest event and
theres not a lot mroe to it.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Joy Labadie" <si***********@yahoo.com> wrote in message
news:e4**************@TK2MSFTNGP10.phx.gbl...

Thanks for the advice - I'm looking for code examples of how to do what
you just descriped on the internet - do you have any suggestions of
where to look?

Joy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #8
start here

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconcustomhttpmodules.asp

Work out how to check the referrer in the Application_BeginRequest event and
theres not a lot mroe to it.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Joy Labadie" <si***********@yahoo.com> wrote in message
news:e4**************@TK2MSFTNGP10.phx.gbl...

Thanks for the advice - I'm looking for code examples of how to do what
you just descriped on the internet - do you have any suggestions of
where to look?

Joy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #9
"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in
news:uE**************@TK2MSFTNGP12.phx.gbl:
Work out how to check the referrer in the Application_BeginRequest
event and theres not a lot mroe to it.

Note that the HTTP spec says that a browser is NOT required to send a
referer, and if it sends it, it's NOT required to be correct, and that
server-side applications should NOT rely on it being there and being
correct.

Mark
Jul 21 '05 #10
"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in
news:uE**************@TK2MSFTNGP12.phx.gbl:
Work out how to check the referrer in the Application_BeginRequest
event and theres not a lot mroe to it.

Note that the HTTP spec says that a browser is NOT required to send a
referer, and if it sends it, it's NOT required to be correct, and that
server-side applications should NOT rely on it being there and being
correct.

Mark
Jul 21 '05 #11

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

Similar topics

24
5007
by: Yang Li Ke | last post by:
Hi guys! Anyone know a way so that users purchasing my scripts would not be able to share them with other people ? Yang
13
1727
by: Fotozine | last post by:
well, after several months of learning, writing and developing my site, (and colecting hunderts of users in few days) one person have "included" my whole site under his domain. in frameset: ...
12
2175
by: Roland Hall | last post by:
I read Aaron's article: http://www.aspfaq.com/show.asp?id=2276 re: protecting images from linked to by other sites. There is a link at the bottom of that page that references an interesting...
7
1685
by: Ron Gibson | last post by:
Lets say I have a folder members/3/ in this folder are images I have a login page that connects to a database to retrieve user info. After login the user is directed to a page that lists...
9
352
by: simchajoy2000 | last post by:
Hi, I know that it is impossible to completely protect images on websites so that no one can get their hands on them. But there have to be a lot of ways to deter people from stealing images and...
1
1307
by: darrel | last post by:
I need to be able to password protect individual pages. For instance: /protected.aspx?id=123 /protected.aspx?id=555 Both would need to be only accessible to two different people (with their...
11
1660
by: sarika | last post by:
Hi all I am making a website related to uploading art pieces. My requirement is to protect art pieces from being saved by any means. I dont want my images to be save in temporary internet...
0
7027
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
6899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7019
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
7067
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
6847
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...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1288
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 ...

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.