加拿大华人论坛 美国华人新闻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.
·加拿大新闻 看到快买加国Costco新晋爆款刷屏
·加拿大新闻 从追面子到享自我,宝马购车观转变
·加拿大新闻 每周连轴转80小时加拿大医生自爆行业黑幕
·加拿大新闻 万锦、Newmarket多家奶茶店/美甲店/理发店被指控+开罚单
·加拿大新闻 移民急刹车见效!加拿大人口首次出现历史性大幅下降
·中文新闻 一名男子因推动反犹太复国主义而在悉尼市议会市长的长篇大论
·园艺 蒜黄和蒜芽








