this is a light waf depend on openresty
Lua library for HTTP cookie
https://github.com/cloudflare/lua-resty-cookie
Lua CJSON is a fast JSON encoding/parsing module for Lua
https://github.com/openresty/lua-cjson
luafilesystem
https://github.com/keplerproject/luafilesystem
install require by luarocks
add this in your nginx conf
lua_shared_dict rule_cache 128m;
access_by_lua_file 'lua/waf.lua';
body_filter_by_lua_file 'lua/body_filter.lua';
enable which protect you want in lua/config.lua