在ASP.Net和IIS中删除不必要的HTTP响应头,IIS响应头敏感信息(Server/X-AspNet-Version等)过滤
2021-01-01 23:28
标签:过滤 remove rem nbsp ade ati cte version The global.asax.cs文件添加如下代码 webconfig添加下面配置去掉X-Powered-By 在ASP.Net和IIS中删除不必要的HTTP响应头,IIS响应头敏感信息(Server/X-AspNet-Version等)过滤 标签:过滤 remove rem nbsp ade ati cte version The 原文地址:https://www.cnblogs.com/jiangqw/p/13673645.html ///
protected void Application_Start()
{
MvcHandler.DisableMvcResponseHeader = true;//移除X-AspNetMvc-Version HTTP头
}
httpProtocol>
customHeaders>
remove name="X-Powered-By" />
customHeaders>
httpProtocol>
下一篇:神经网络 - VGGNet 15
文章标题:在ASP.Net和IIS中删除不必要的HTTP响应头,IIS响应头敏感信息(Server/X-AspNet-Version等)过滤
文章链接:http://soscw.com/index.php/essay/39451.html