Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
 Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JScript 
fileExtensions Element for requestFiltering [IIS Settings Schema]

NoteNote:

For more information about the fileExtensions element, see the following topic on the Microsoft IIS.net Web site: File Name Extensions <fileExtensions>.

Specifies which file name extensions are allowed or denied to limit types of requests sent to the Web server.

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

allowUnlisted

Optional Boolean attribute.

Specifies whether the Web server should process files that have unlisted file name extensions. If you set this attribute to true, you must list all file name extensions you want to deny. If you set this attribute to false, you must list all file name extensions you want to allow.

The default value is true.

applyToWebDAV

Optional Boolean attribute.

Specifies whether these settings should also apply to WebDAV requests.

Child Elements

Element

Description

add

Optional element.

Adds a file name extension to the collection of file name extensions.

remove

Optional element.

Removes a reference to a file name extension from the fileExtensions collection.

clear

Optional element.

Removes all references to file name extensions from the fileExtensions collection.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

security

Specifies the section group that contains security-related sections.

requestFiltering

Specifies configuration settings for request filtering.

For more information about the fileExtensions element, see the following topic on the Microsoft IIS.net Web site: File Name Extensions <fileExtensions>.

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker