Fork me on GitHub

服务器常见漏洞处理

1.HTTP Server类型和版本号隐藏(IIS)

  1.1下载url rewrite(https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads

  1.2编辑 WebConfig

<system.web>
  <compilation targetFramework="4.6.1" />
  <httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
  ...
        <rewrite>    
          <outboundRules rewriteBeforeCache="true">
            <rule name="Remove Server header">
              <match serverVariable="RESPONSE_Server" pattern=".+" />
              <action type="Rewrite" value="Apache" />
            </rule>
          </outboundRules>
        </rewrite>
  </system.webServer>
posted @ 2023-03-03 18:07  WantRemake  阅读(58)  评论(0编辑  收藏  举报