这会造成任何伤害吗?除了告诉浏览器您已安装 .net 之外,它还有其他用途吗?
我喜欢这篇关于将标题更改为 Pure Evil 的文章。天才!
http://www.iishacks.com/index.php/2009/11/11/remove-x-powered-by-aspnet-http-response-header/
最佳答案
将其添加到您的 web.config 部分
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
关于asp.net - 在 IIS 中,我可以安全地删除 X-Powered-By ASP.NET header 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3374831/