我们最近对 Windows Azure 网站进行了升级,并启用了IIS8的动态 IP 限制模块.现在,开发人员可以为其网站启用并配置动态 IP 限制功能(或简称 DIPR). 可以通过以下链接查看此 IIS8 功能的完整概述: http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-dynamic-ip-address-restrictions DIPR 功能主要为开发人员提供两种保护: · 根据并发请求数阻止 IP 地址
An IP Address Blocking HttpModule for ASP.NET in 9 minutes namespace YourModuleNameHere 10 { 11 public class IPBlackList : IHttpModule 12 { 13 private EventHandler onBeginRequest; 14 15 public IPBlackList() 16 { 17 onBeginRequest = new EventHandler(t