web.config을 수정하는 방법
1.
<httpRuntime enableVersionHeader="false" />
2.
<rule name="removingserverheader" enabled="true">
<match serverVariable="RESPONSE_SERVER" pattern=".*" />
<action type="Rewrite" value="My Web Server" />
</rule>
3.<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
vnote
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
<rewrite>
<outboundRules>
<rule name="Strip Headers">
<match serverVariable="RESPONSE_SERVER" pattern=".*" />
<action type="Rewrite" value="MyServer" replace="true" />
<conditions>
</conditions>
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</configuration>
이 댓글을