加拿大华人论坛 美国华人新闻How to Remove IIS "Server" Header?
在加拿大
可以通过代码实现: 代码: public class Module : IHttpModule{public Module(){}#region IHttpModule Memberspublic void Dispose(){return;}public void Init(HttpApplication context){context.EndRequest += new EventHandler(context_EndRequest);}void context_EndRequest(object sender, EventArgs e){HttpApplication app = (HttpApplication)sender;app.Response.Headers.Remove("Server");}#endregion 但是仅限于IIS7+.net 3.0+The Headers property is only supported with the IIS 7.0 integrated pipeline mode and at least the .NET Framework 3.0. When you try to access the Headers property and either of these two conditions is not met, a PlatformNotSupportedException is thrown.
·加拿大新闻 全新XC70对比全新Q5L,它们之间的差距大不大呢?
·加拿大新闻 雷克萨斯的十字路口:销量增长,光环褪色
·加拿大新闻 林肯品牌新定调,“舒服”开启豪华新篇
·加拿大新闻 加拿大Banff突发雪崩滑雪者被卷下山埋到腰部
·加拿大新闻 中国大降关税但卑诗农渔民心里依然忐忑
·中文新闻 布鲁克林·贝克汉姆 (Brooklyn Beckham) 与佩尔茨 (Peltzes) 一家的有趣
·中文新闻 “事情结束后,他们都松了一口气”:为什么波什不是尼古拉第








