Re: Mime types

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 04/08/04


Date: Thu, 8 Apr 2004 18:35:23 +0200

In addition to what other have said:

If you are afraid of "hot linking" stealing bandwidth from you, it would be
a nicer solution to have an ISAPI filter. One of the benefits is that it
will not execute an asp file every time someone downloads an image. ISAPI
filter should in general work faster.

-- 
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
http://www.ilopia.com/
"Johan Karlsson" <johan.karlsson@adnome.se> wrote in message
news:%23Gcz4JTHEHA.3748@tk2msftngp13.phx.gbl...
> Hi,
>
> I've been searching around for some time now and cannot find an answer to
my
> question.
> I know that is possible to register more MIME types into a website, and
even
> a folder. But can you restrict mime types for one folder.
>
> Example: I have a folder /test under www.somesite.com. From this folder I
> would like to restrict GIF files from being downloaded. The best scenario
> would be to only allow asp files to be parsed and nothing else. The
purpose
> is that I want to authenticate download of resources in a folder. I cannot
> move the files due to design restrictions in another part of the system.
> When a user uploads a file, lets say, Image.gif, an asp file is
> automatically created with the namne Image.gif.asp that takes care of
> authentication and creating the stream. The whole idea might be bad, thats
> why I'm asking you guys.
>
> Thanks
> /Johan
>
>


Relevant Pages

  • Re: Mime types
    ... don't steel images or documents. ... > will not execute an asp file every time someone downloads an image. ... But can you restrict mime types for one folder. ...
    (microsoft.public.inetserver.iis)
  • Re: Odd "Access to the path is denied" exception being thrown
    ... The problem occurs on any folder, ... is a ASP file, not necessarily permissions on the folder, so I believe this ... Windows (remember this was working 2 months ago, so may be some configuration ... "Carlitos" wrote: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Update Authentication Issues
    ... more restrictive folder where they kept their security settings and didn't ... option, hit apply, then check to inherit rights again and hit ok. ... > What I have learned, though, is that by trying to access an ASP file, I am ...
    (microsoft.public.inetserver.iis.security)
  • Re: Users Cannot access ASP files in secured folders.
    ... How do u configure the security for the folder/file? ... User is a domain user account ... Create a simple asp file with response.write "hello world" and put into ... the same folder. ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP folder access permission
    ... > I've got a problem with folder permission setting which I hope you can ... there are some folders which I do not allow anonymous access. ... but the ASP file is still able to read ... Sounds like you have permissions set on the top level directory and it is ...
    (microsoft.public.inetserver.iis.security)