Protecting Images in ASP.NET

  • Thread starter Thread starter simchajoy2000
  • Start date Start date
S

simchajoy2000

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
 
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.
 
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
 
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
 
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
 
Back
Top