Removing Server header from static content in IIS 7/8

后端 未结 5 1504
走了就别回头了
走了就别回头了 2021-02-01 15:53

As part of an effort to make our API and site more secure, I\'m removing headers that leak information about what the site is running.

Example before stripping headers:<

5条回答
  •  盖世英雄少女心
    2021-02-01 16:26

    You should be able to force all requests to go through your managed code by adding this to your webconfig:

    
    

    Then, even static files should adhere to your header rules.

提交回复
热议问题