http://code.google.com/p/naxsi/

rules + machine learning-based WAF for NGINX. A new, yet very promising project. A replacement for apache’s mod_security