Response header에 IIS 정보를 숨기기

VNote 2017.04.20 13:06:14

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>