security - Dynamic IP-based blacklisting -
folks, know ip blacklisting doesn't work - spammers can come in through proxy, plus, legitimate users might affected... said, blacklisting seems me efficient mechanism stop persistent attacker, given actual list of ip's determined dynamically, based on application's feedback , user behavior.
for example: - trying brute-force login screen - poorly written bot issues strange http requests site - script-kiddie uses scanner vulnerabilities in app
i'm wondering if following mechanism work, , if so, know if there tools it:
- in web application, developer has hook report "offense". offense can minor (invalid password) , take dozens of such offenses blacklisted; or can major, , couple of such offenses in 24-hour period kicks out.
- some form of web-server-level block kicks in on before every page loaded, , determines if user comes "bad" ip.
- there's "forgiveness" mechanism built-in: offenses no longer count against ip after while.
thanks!
extra note: it'd awesome if solution worked in php, i'd love hear thoughts approach in general, language/platform
are on *nix machine? sort of thing better left os level, using iptables
edit:
in response comment, yes (sort of). however, idea iptables can work independently. can set threshold throttle (for example, block requests on port 80 tcp exceed x requests/minute), , handled transparently (ie, application doesn't need know it, have dynamic blocking take place).
i suggest iptables method if have full control of box, , prefer let firewall handle throttling (advantages are, don't need build logic web app, , can save resources requests dropped before hit webserver)
otherwise, if expect blocking won't huge component, (or app portable , can't guarantee access iptables), make more sense build logic app.
Comments
Post a Comment