ASP.NET Web应用程序/网站中的IP地址的阻止列表 [英] Blocking list of IP addresses in ASP.NET web application/website
本文介绍了ASP.NET Web应用程序/网站中的IP地址的阻止列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组IP地址.
部署应用程序后,我只希望能够从特定IP地址访问应用程序.
After deploying my application, I want to only be able to access my application from a particular IP address.
如何使用Global.asax(而不是通过IIS)实现此目标?
How can I achieve this using the Global.asax (not through IIS)?
推荐答案
这是一个适合您的好起点
This is a good starting point for you
(尤其是将它很好地分成一个HttpModule以供后续重用)
(especially as it's separated nicely into a HttpModule for subsequent re-use)
这篇关于ASP.NET Web应用程序/网站中的IP地址的阻止列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文