Removing Server header from static content in IIS 7/8

后端 未结 5 1505
走了就别回头了
走了就别回头了 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:30

    Use the IIS UrlRewrite 2.0 for blanking the Server response header. Add following code in the Web.config file

     
    
    
    
    
    
    
    
    
    
    

    https://stackoverflow.com/a/12615970/5810078

提交回复
热议问题