fileExtensions Element for requestFiltering [IIS Settings Schema]

Note

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.

Syntax

Attributes and Elements

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.

Remarks

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

Element Information

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

See Also

Reference

add Element for fileExtensions for requestFiltering [IIS Settings Schema]

remove Element for fileExtensions for requestFiltering [IIS Settings Schema]

clear Element for fileExtensions for requestFiltering [IIS Settings Schema]