How to delete IIS custom headers like X-Powered-By: ASP.NET from response?

后端 未结 7 1652
小鲜肉
小鲜肉 2021-02-01 13:19

In IIS 7.0 integrated mode after deleting all headers with Response.ClearHeaders() IIS would add some other headers like Server

7条回答
  •  盖世英雄少女心
    2021-02-01 13:41

    The following answer includes a complete solution that does not require URLScan or a custom HttpModule, and removes all the related headers you mention. It also works on Azure.

    Removing/Hiding/Disabling excessive HTTP response headers in Azure/IIS7 without UrlScan

提交回复
热议问题