using System; using System.Web; namespace Sample.Web.HttpExtensions { public class SampleHttpModule : IHttpModule { public void Dispose( ) { } public void Init(HttpApplication context) { context.BeginRequest += delegate(Object sender, EventArgs ea) { HttpApplication ha = sender as HttpApplication; if (ha != null) { /* * You may do any processing here. Perhaps you want to implement a new security model? * Or maybe you want to block a range of IP addresses? * */ } }; } } }