什么文件扩展名被阻止在默认情况下在IIS [英] What file extensions are blocked by default in IIS

查看:587
本文介绍了什么文件扩展名被阻止在默认情况下在IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些文件不提供关闭IIS,因为它们通常是网站本身的构建模块的一部分。对于ASP.NET这些都是像*的.cs文件,* .DLL,* .config文件,* .cshtml等。

Some files are not served off of IIS because they are typically part of the building blocks of the website itself. For ASP.NET these are files like *.cs, *.dll, *.config, *.cshtml, etc.

您可以找到他们的捆绑在IIS管理设置列表中选择过滤器请求在这里:

You can find a list of them tied up in the IIS management setting "Filter requests" here:

但是,如果你需要以编程方式访问这个名单,似乎很难找到。有这些默认扩展一个好名单?

But if you need to programmatically access this list, it seems tough to find. Is there a good list of these default extensions?

顺便说一句,在IIS网站有关于如何启用/禁用这些全球这里的信息:

BTW, the IIS website has info on how to enable / disable these globally here:

http://www.iis.net/configreference/system.webserver/security/requestfiltering/fileextensions

推荐答案

下面的列表我打造出来的IIS用户界面,因为我找不到它的任何地方。希望你能有所帮助。

Here's the list I build out of the IIS UI since I couldn't find it anywhere. Hope you find it helpful.

不允许扩展

.asax
.ascx
.master
.skin
.browser
.sitemap
.config
.cs
.csproj
.vb
.vbproj
.webinfo
.licx
.resx
.resources
.mdb
.vjsproj
.java
.jsl
.ldb
.dsdgm
.ssdgm
.lsad
.ssmap
.cd
.dsprototype
.lsaprototype
.sdm
.sdmDocument
.mdf
.ldf
.ad
.dd
.ldd
.sd
.adprototype
.lddprototype
.exclude
.refresh
.compiled
.msgx
.vsdisco
.rules

这篇关于什么文件扩展名被阻止在默认情况下在IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆