如何以编程方式将 IP 地址添加到 Windows Server 2003 中的阻止列表中?

发布于 2024-08-16 03:16:44 字数 308 浏览 4 评论 0原文

根据此问题的一般答案:

阻止通过禁止访问网站IP 地址

并在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界如花海般美丽 2024-08-23 03:16:44

基本上,您要做的就是修改 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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文