开发者

Anybody using detrusion.com, web application firewall for ruby on rails

开发者 https://www.devze.com 2023-03-17 18:40 出处:网络
PS: I was doing to some random search and then I got detrusion.com. Whats this web application firewall ?

PS: I was doing to some random search and then I got detrusion.com.

  1. Whats this web application firewall ?
  2. How it works ?
  3. Any performance hit, if yes then how much?
  4. Should I开发者_JAVA技巧 use this destruction.com or anything else better available.

Anybody??


I quickly glanced at the code and it doesnt appear to be doing all that much. Basically it maintains a white and black list of IPs. While it cannot be that much of a crazy performance hit you'd probably be better off doing this kind of request analyzing in a Rack middleware, that is before it even gets to the Rails request handling.

That being said, I dont like the fact that it will re-sync every 5 minutes DURING processing a given request. That is, it will block the current request while it re-syncs its ruleset / and lists. Which means that you're at the mercy of the Detrusion.com team to keep their site/API up. So when they go down you go down.

While its not as real-timey, I'd feel more comfortable to have the updating process be out of bound. Maybe you store the rules/lists in a flat file or a local DB (Redis would be perfect) which you load on app start. Then you have a frequent cron which reloads the ruleset from Detrusion and writes it locally.

Something like that. Just anything to de-couple your request handling from a Detrusion API check.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号