什么文件扩展名被阻止在默认情况下在IIS情况下、文件扩展名、IIS

2023-09-04 02:18:48 作者:花、开到荼蘼

某些文件不提供关闭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
 
精彩推荐
图片推荐