Is there a way to implement something like this on nginx? http://whmcr.com/2009/06/19/lighttpd-mod_security-via-mod_magnet/ I have a LUA script similar to the one above for some basic web application firewall stuff and would like to convert it over to nginx. Debian 8 Jessie nginx/1.6.2by guyp - Migration from Other Servers