浏览代码

Remove headers for security

master
Daniel Covington 5 天前
父节点
当前提交
342097c156
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. +16
    -0
      public/web.config

+ 16
- 0
public/web.config 查看文件

@@ -87,6 +87,22 @@
</rule>
</rules>
</rewrite>

<!-- Strip the Server response header (reveals IIS version) - IIS 10+ only -->
<security>
<requestFiltering removeServerHeader="true" />
</security>

<!-- Strip framework-identifying headers that IIS/ASP.NET modules may add -->
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="X-AspNet-Version" />
<remove name="X-AspNetMvc-Version" />
<!-- URL Rewrite module adds this in IIS Express, leaking the physical file path -->
<remove name="X-SourceFiles" />
</customHeaders>
</httpProtocol>
</system.webServer>

</configuration>

正在加载...
取消
保存

Powered by TurnKey Linux.