赞
踩
web.config:
想要隐藏Server和X-AspNet-Version 两项
<system.webServer>节点添加子节点rewrite
<system.webServer>
<rewrite>
<outboundRules>
<rule name="REMOVE_RESPONSE_SERVER">
<match serverVariable="RESPONSE_SERVER" pattern=".*" />
<action type="Rewrite" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
<system.web>节点添加子节点<httpRuntime>
<system.web>
<httpRuntime enableVersionHeader="false" />
</system.web>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。