在Web.config中作如下的配置

<?xml version="1.0" encoding="utf-8"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<hiddenSegments>
<add segment="Sysfolder"/>//需要限制访问的文件夹名称
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>
博客提及在Web.config中进行配置,但未详细说明配置内容。Web.config是与信息技术相关的配置文件,常用于特定环境的设置。
1919

被折叠的 条评论
为什么被折叠?



