通过 IP 地址限制访问的最佳方法? [英] Best way to restrict access by IP address?
本文介绍了通过 IP 地址限制访问的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于 ASP.NET C# 应用程序,我们需要根据 IP 地址限制访问.实现此目的的最佳方法是什么?
For an ASP.NET C# application, we will need to restrict access based on IP address. What is the best way to accomplish this?
推荐答案
在 IIS 7 中限制 IP 的最佳方法是使用配置文件.
In IIS 7 best way to restrict IP is by using the config file.
全文:
http://boseca.blogspot.com/2010/12/programmatically-addremove-ip-security.html
这篇关于通过 IP 地址限制访问的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文