加拿大华人论坛 美国华人新闻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.
·加拿大新闻 宝马新iX3900km续航+Momenta辅驾
·加拿大新闻 Aspark发布炫酷电动敞篷跑车Owl
·加拿大新闻 别忘了!加拿大3项"集体索赔"即将到期:抓紧最后
·加拿大新闻 尹大卫:如果维持油轮禁令不反对再建一条输油管
·加拿大新闻 [有片] 温哥华白帽晋身MLS总决赛下周六梅拿斗美斯争冠军
·中文新闻 一名男子在 Bunnings 被一辆小货车撞倒后不幸身亡
·中文新闻 电视节目 Rivals 因丑闻而震动,迪士尼+ bonkbuster 的幕后滑稽动作








