The point is not to prevent people from *saving* your images. You can't do
that... if the image shows up on my screen, I can do a PrintScreen and save
a copy. I made a half-joke in my article about protecting JavaScript, but
it really is true: if you want to protect your GIFs or JPGs, put them on a
floppy, stuff it into a mason jar, go out to the garden at midnight, and
bury it.
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Roland Hall" <nobody@nowhere> wrote in message
news:e1xTkCS4DHA.1636@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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 article about ways of
> protecting your images from being downloaded. It was my understanding[/color]
that[color=blue]
> if the client sees it, then it's in the client cache. Am I wrong in this
> belief or not?
>
> I took the information in the article and created the .asp that renders[/color]
one[color=blue]
> image vs another depending on the HTTP_REFERER. I also added the no-right
> click and turned off the image gallery with the META tag and I put a
> transparent gif image over the other image that is inside a span and set[/color]
to[color=blue]
> the background.
>
> One thing I found, which was not mentioned, was that I was able to put the
> .asp file loading in the .css file with:
> background: url(/images/filename.asp)
>
> I didn't see any references to doing it that particular way. However, I
> would like to see if anyone can get past these settings and actually[/color]
obtain[color=blue]
> the image and in what way can it still be done. I would think you could
> just pull it out of your browser cache if you really wanted it.
>
>
http://kiddanger.com/images/badtest.asp
>
> Another interesting side-effect is that one you track down the .asp file[/color]
and[color=blue]
> try to load it directly, it shows the other image but it also disables
> viewing the source from either right-click or from the pull-down menu and[/color]
if[color=blue]
> you then click your back button on your browser, the image size of the
> original image is there but it is populated with multiple instances of the
> alternate image. Then if you click the refresh button on the toolbar, the
> original image returns.
>
> I don't have any other browsers installed. I'm using
> IE6.0.2800.1106.xpsp2.030422-1633. I'm wondering what the effects are[/color]
with[color=blue]
> others. I would appreciate feedback from those of you who do have other
> browsers installed.
>
> --
> Roland
>
> This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability[/color]
o[color=blue]
> r fitness for a particular purpose.
> -Technet Knowledge Base-
>[/color]
http://support.microsoft.com/default...&ln=EN-US&FR=0[color=blue]
> -Technet Script Center-
>[/color]
http://www.microsoft.com/technet/tre...er/default.asp[color=blue]
> -WSH 5.6 documentation download-
>[/color]
http://www.microsoft.com/downloads/d...displaylang=en[color=blue]
> -MSDN Library-
>
http://msdn.microsoft.com/library/default.asp
>
>[/color]