473,397 Members | 2,028 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,397 software developers and data experts.

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 1586
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
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
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
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
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
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
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
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
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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
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...

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.