lua_package_path "/usr/local/openresty/lualib/?.lua;/usr/local/openresty/nginx/conf/waf/?.lua";
lua_shared_dict limit_cache 50m;
init_by_lua_file /usr/local/openresty/nginx/conf/waf/init.lua;
access_by_lua_file /usr/local/openresty/nginx/conf/waf/waf.lua;
or
access_by_lua '
if check_white_ip() then
elseif check_white_ua() then
elseif check_black_ua() then
elseif check_query() then
elseif check_post_args() then
elseif check_cookie() then
elseif check_cc_ip(100, 60) then
elseif check_cc_uri(10, 60) then
else
return
end
';