HttpModule和HttpHandler的常见用法

 

 

IHttpHandler用法:

1.修改文件的后缀名。比如a.aspx改成a.xxx,a.abc等等。

2.网站静态化:

http://www.cnblogs.com/rym1020/archive/2008/10/27/1320808.html

http://www.cnblogs.com/xlfj521/archive/2008/03/25/1121178.html

3.隐藏图片真实地址

http://www.5x-space.cn/post/2008/11/21/aspnet-e4bdbfe794a8HttpHandlere99a90e8978fe59bbee78987e79c9fe5ae9ee59cb0e59d80.aspx

4.实现图片防盗链,图片验证码,自定义后缀Rss

http://www.tracefact.net/Asp-Net/Introduction-to-Http-Handler.aspx

5.计算页面的执行时间

http://www.chenjiliang.com/Article/View.aspx?ArticleID=3463&TypeID=5

 

IHttpModule用法:

1.利用HttpModule实现防sql注入

http://www.cnblogs.com/oec2003/archive/2008/11/28/1339503.html

2.实现URL重写

http://www.chenjiliang.com/Article/View.aspx?ArticleID=13606&TypeID=5

http://hi.baidu.com/lhdwy/blog/item/2966f1248db30a074c088de3.html

http://blog.csdn.net/ITFLY8/archive/2007/03/09/1524871.aspx

3.ASP.Net (*.aspx) 中文简繁体的自动转换

http://qzone.qq.com/blog/9209964-1201053591

4.浏览器版本控制

http://www.cnblogs.com/tishifu/archive/2007/08/28/872987.html

5.限制访问IP

http://blog.csdn.net/eyu777/archive/2008/10/15/3078535.aspx

6.获取Session来实现页面访问日志功能

http://www.cnblogs.com/junqilian/archive/2008/03/07/1095454.html

http://www.cnblogs.com/eflylab/archive/2008/05/29/1209767.html

http://www.cnblogs.com/bluewater/archive/2006/05/29/412254.html 初始化NhibernateSession

 

IHttpHandlerFactory用法:

1.过滤TextBoxInputTextarea中的特殊

http://www.chenjiliang.com/Article/View.aspx?ArticleID=13601&TypeID=5

 

 

你可能感兴趣的:(浏览器,session,input,360,HttpModule,textbox)