【问题标题】:Hide server information from wappalyzer in IIS从 IIS 中的 wappalyzer 隐藏服务器信息
【发布时间】:2019-09-12 12:07:09
【问题描述】:

我想对 Wappalyzer 隐藏我的 Web 服务器和操作系统

我删除了 x-power-by 但没有任何反应

【问题讨论】:

    标签: asp.net iis


    【解决方案1】:

    如果您想隐藏您的技术,如 asp.net,请删除响应头 X-POWERED-By

        <customHeaders>
            <remove name="X-Powered-By" />
        </customHeaders>
    </httpProtocol>
    

    如果你想隐藏你的网络服务器,请下载 URL 重写扩展并设置如下的出站规则:

        <outboundRules>
            <rule name="response" enabled="true">
                <match serverVariable="RESPONSE_SERVER" pattern="(.*)" />
                <action type="Rewrite" />
            </rule>
        </outboundRules>
    

    请记住,Wappalyzer 会缓存信息。所以当你完成这些配置后,请记得清理浏览器缓存。

    【讨论】:

      【解决方案2】:

      我在 web.config 文件中这样做:

      <httpProtocol>
        <customHeaders>
          <remove name="X-Powered-By"/>
          <add name="X-Powered-By" value="Write what you want to show here"/>
        </customHeaders>
      </httpProtocol>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-09-05
        • 2021-10-31
        • 2021-08-07
        • 2012-02-05
        • 2022-10-06
        • 2016-12-27
        • 2017-12-12
        • 2018-08-10
        相关资源
        最近更新 更多