Re: How does HttpHandler section work?!?

From: Dragos Gafita (aaa@aaa.com)
Date: 11/27/02


From: "Dragos Gafita" <aaa@aaa.com>
Date: Wed, 27 Nov 2002 14:18:57 +0200


Thank you! Nice and simple solution. I should have thought about it :)

"John Saunders" <jws@jws.ultranet.com> wrote in message
news:O#CJz9GlCHA.2156@tkmsftngp12...
> Are .jpg files even getting to ASP.NET? Check the IIS configuration under
> "Home Directory". JPEG files aren't normally mapped to ASP.NET, so your
> configuration doesn't matter. Configure the .jpg extension like .aspx is
> configured and you should be ok.
> --
> --
> John Saunders
> Internet Engineer
> john.saunders@surfcontrol.com
>
> "Dragos Gafita" <aaa@aaa.com> wrote in message
> news:e2a4D6FlCHA.716@tkmsftngp11...
> > Hi!
> > I have a weird problem. In my web.config file I've added the following
> > lines:
> >
> > <httpHandlers>
> > <add verb="*" path="*.jpg" type="System.Web.HttpForbiddenHandler"/>
> > </httpHandlers>
> >
> > I did so because I wanted to prevent any .jpg from being downloaded. All
> > .jpg are located in a directory called "Pictures" that belongs to the
app
> > dir. Why am I still able to view the pictures and save them using the
> > browser?!? Can anyone, please, tell me what's wrong?
> > Thank you.
> >
> >
> >
> >
>
>



Relevant Pages

  • Re: How does HttpHandler section work?!?
    ... Are .jpg files even getting to ASP.NET? ... Check the IIS configuration under ... "Home Directory". ... Why am I still able to view the pictures and save them using the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Microsoft updates: a bad thing?
    ... Send me e-mail and I will send back a jpg of the configuration. ... Joel ... >> Its possible to get malicious code by downloading NOTHING and opening ...
    (sci.med.dentistry)
  • Embedded graphics in Outlook 2007 running on WinXP
    ... The graphics are visible but I cannot save them as anything other than Scrap ... I wish to save as a .jpg. ... Which configuration have I missed or ...
    (microsoft.public.outlook)
  • Re: ASP.NET impersonation - getfiles() problem
    ... unchecked in IIS configuration. ... A machine must be trusted and configured for delegation. ... delegation" because of inside security procedures (bla, bla, bla). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: iis looses configuration information
    ... IIS Configuration is kept in memory. ... those virtual directories is lost. ...
    (microsoft.public.inetserver.iis)