1. Registry - HKCR\Extensions
2. IIS Global MIME Type - LM/MimeMap/MimeMap
3. Per-URL MIME Type - W3SVC/#/ROOT/?/MimeMap
This posting is provided "AS IS" with no warranties, and confers no rights.
"Nico" <Nico@discussions.microsoft.com> wrote in message
news:D4E16616-F138-49CA-AD56-59B27E5D66EB@microsoft.com...
> Thanks again for the response.
>
> My testing has shown that removing MIME types from within the IIS
> configuration is not enough, you also have to remove them from the
> registry
> under HKEY_CLASSES_ROOT\extensions.
>
> To be as secure as possible and disallow all static files, would you have
> to
> remove everything in that tree? and since that tree is server-wide, not
> just
> related to IIS, what would be the impact of removing all MIME types from
> that
> registry tree?
>
> "Ken Schaefer" wrote:
>
>> "Nico" <Nico@discussions.microsoft.com> wrote in message
>> news:273AD788-868A-4425-9207-2BCE726D3BED@microsoft.com...
>> : Hi,
>> :
>> : Therfore, i am wondering if there is a way to restrict IIS6.0 to
>> serving
>> : only a known whitelist of authorised file-types without the use of
>> URLScan.
>>
>> You would need to restrict this by using MIME types (i.e. removing those
>> that you don't want to allow).
>>
>> Alternatively, if you want, you can use URLScan.
>>
>> Cheers
>> Ken
>>
>>
>>
>>
>>
>> : Thank you for your responses.
>> :
>> : "David Wang [Msft]" wrote:
>> :
>> : > Please define:
>> : > 1. what actions you want to control through authorization
>> : > 2. how users are authenticated such that you can apply authorization
>> rules
>> : >
>> : > "Restricting access to static files" is pretty ambiguous.
>> : >
>> : > If you want to prevent the files from being served by the static file
>> : > handler, then why put it in the URL namespace?
>> : >
>> : > If you only want certain users to download the files but not others,
>> then
>> : > you must authenticate users to obtain identity such that you can
>> place
>> : > authorization rules like NTFS ACLs.
>> : >
>> : > --
>> : > //David
>> : > IIS
>> : >
http://blogs.msdn.com/David.Wang >> : > This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> : > //
>> : >
>> : > "Nico" <Nico@discussions.microsoft.com> wrote in message
>> : > news:20C14FBF-4912-4CA8-BBE8-921A1B4143B8@microsoft.com...
>> : > > I'm trying to determine the best way to restrict access to static
>> files in
>> : > > IIS6.0. From my understanding the recommended solution is to
>> remove
>> the
>> : > > extension from the MIME types in the IIS6.0 console. However
>> testing
>> has
>> : > > shown that you also need to remove these from HKEY_CLASSES_ROOT as
>> well.
>> : > >
>> : > > To be as secure as possible I want to limit ALL static content so
>> this
>> : > > would
>> : > > mean removing all extensions from HKEY_CLASSES_ROOT, and I'm not
>> sure
>> what
>> : > > determental effect this would have on the server.
>> : > >
>> : > > The other solution is using the [AllowExtensions] functionality of
>> : > > URLScan,
>> : > > but Microsoft apparently does not recommend installing URLSCan on
>> IIS6.0
>> : > > as a
>> : > > means of increasing security.
>> : >
>> : >
>> : >
>>
>>
>>