https://github.com/betta-cyber/kwaf
lightweight web application firewall
https://github.com/betta-cyber/kwaf
firewall lightweight lua safe waf websafe
Last synced: about 1 year ago
JSON representation
lightweight web application firewall
- Host: GitHub
- URL: https://github.com/betta-cyber/kwaf
- Owner: betta-cyber
- License: mit
- Created: 2018-08-19T10:11:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T15:29:09.000Z (about 6 years ago)
- Last Synced: 2025-01-31T12:13:17.040Z (about 1 year ago)
- Topics: firewall, lightweight, lua, safe, waf, websafe
- Language: Lua
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kwaf
this is a light waf depend on openresty
# require
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
install require by [luarocks](https://luarocks.org/)
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