SERVER
Response header에 IIS 정보를 숨기기

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>

이 게시물을

댓글'1'
VNote (작성자)
  • 2017.04.20
  • 수정: 2017.04.20 13:31:52

<?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>

이 댓글을

공유하기

SEARCH

MENU NAVIGATION