Re: How does HttpHandler section work?!?

From: John Saunders (jws@jws.ultranet.com)
Date: 11/25/02


From: "John Saunders" <jws@jws.ultranet.com>
Date: Mon, 25 Nov 2002 05:43:00 -0500


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?!?
    ... Check the IIS configuration under ... Configure the .jpg extension like .aspx is ... > Internet Engineer ...
    (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: JPEG pictures do not display in WIN XP media center
    ... scroll down to JPG and JPEG entries. ... shows but when I say show Media Centre says the folders are empty. ... used to add pictures to media centre, ... pictures folder to a new one, then deleted the old one and let WIN XP ...
    (microsoft.public.windows.mediacenter)
  • Re: JPEG pictures do not display in WIN XP media center
    ... "type" of jpg. ... ....they will show up in Media Center. ... into that shared folder ... i had found once on a web site, the same solution that u gave for the pictures ...
    (microsoft.public.windows.mediacenter)