Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
继这个问题的一般答案之后:
阻止通过被禁止的 IP 地址访问网站
并在 C# ASP.NET MVC 堆栈上工作,我如何以编程方式将 IP 地址添加到 Windows Server 2003 防火墙上的禁止 IP 地址列表中?
用例是 Web 应用程序上的日志文件记录了对网站的攻击。在管理页面中,我希望能够单击按钮/链接并将该 IP 地址添加到阻止列表中。
基本上你要做的是修改 Windows 的 IPSec 策略。我不想在这里重复答案,但请查看以下线程,它们应该可以满足您的需求: