![]() |
1
1
第一步:阅读以下内容: http://en.wikipedia.org/wiki/Denial-of-service_attack#Prevention_and_response 第二步:实现这一点。创建一组按IP地址索引的计数器。IP地址的每次失败都会增加计数器。计数器是睡眠时间——以秒为单位。10次失败的尝试意味着401响应需要10秒。 |
![]() |
2
2
自己处理http身份验证,根据ip地址(在给定时间内)计算登录次数,然后在达到限制时返回401。 模块perl 2.0: http://perl.apache.org/docs/2.0/user/handlers/http.html#toc_PerlAuthenHandler 模式php: http://no.php.net/manual/en/features.http-auth.php python模式: http://www.modpython.org/live/mod_python-3.2.8/doc-html/tut-more-complicated.html |
![]() |
Community wiki · REST应用程序中的基本身份验证 2 年前 |
![]() |
Antek · 具有基本身份验证的公共可访问api示例[重复] 7 年前 |
![]() |
Kihats · HttpBasic身份验证失败url 7 年前 |
![]() |
rodalfus · 针对不同端点的多个用户详细信息服务 7 年前 |
![]() |
Oscar · 安全对话框Flow fulfillment 7 年前 |