如何以编程方式将 IP 地址添加到 Windows Server 2003 中的阻止列表中?
根据此问题的一般答案:
并在 C# ASP.NET MVC 堆栈上工作,如何以编程方式将 IP 地址添加到 Windows Server 2003 防火墙上的禁止 IP 地址列表中?
用例是 Web 应用程序上的日志文件记录对网站的攻击。我希望能够在管理页面中单击按钮/链接并将该 IP 地址添加到阻止列表中。
Following on from the general answers in this question:
Blocking access to site by banned IP addresses
and working on a C# ASP.NET MVC stack, how would I programmatically add IP addresses to the list of banned IP addresses on a Windows Server 2003 firewall?
The use case is that the log files on the web app record attacks on a web site. From the admin page I want to be able to click a button/link and have that IP address added to the blocked list.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,您要做的就是修改 Windows 的 IPSec 策略。我不想在这里重复答案,但请查看以下线程,它们应该可以满足您的需求:
Basically what you'll want to do is modify the IPSec policies of Windows. I don't want to duplicate answers here, but take a look at the following threads, which should get you what you need: