天天看点

asp.net防类似DDOS攻击(CC攻击)代码

Web.config

<httpModules>

<!–Url重写–>

<add type=”UrlRewriter.RewriterHttpModule, UrlRewriter” name=”UrlRewriter”/>

<!–防类似DDOS攻击–>

<add type=”UrlRewriter.DDosAttackModule, UrlRewriter” name=”DDosAttackModule”/>

</httpModules>

代码:

继续阅读