加拿大华人论坛 美国华人新闻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.
·加拿大新闻 奥迪首款电动轿跑E5Sportback,闪耀登陆津门
·加拿大新闻 全新雷克萨斯LS六轮六座纯电MPV,致敬MEGA风格
·加拿大新闻 惊爆!加拿大一年15.3万次医疗事故!这6种伤害最常见,要多住
·加拿大新闻 在亲密关系中如何谈论金钱问题?专家提供五大建议
·加拿大新闻 震惊:加拿大参议员做手术,未经同意竟被切除子宫
·中文新闻 Yungblud 将把 IDOLS 世界巡回演唱会带到澳大利亚
·中文新闻 凯蒂·佩里 (Katy Perry) 打破了对与贾斯汀·特鲁多 (Justin Trudeau) 的