1 X-AspNetMvc-Version
在Global.asax的Application_Start方法中加入
MvcHandler.DisableMvcResponseHeader = true;
2 X-AspNet-Version
web.config中
<httpRuntime enableVersionHeader="false" />
3 X-Powered-By
web.config中
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>