# unixhot/waf

使用Nginx+Lua实现的WAF（版本v1.0）

Repository: https://github.com/unixhot/waf
Canonical: https://ross.abutalabs.com/products/waf
Language: Lua
License: Apache-2.0
License Family: permissive
Last push: 2023-08-07T06:25:57+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4007, "days_push": 1122, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1450, forks 510 (observed 2026-08-28T04:04:45.775200+00:00)

## What it is
A lightweight Web Application Firewall (WAF) implemented with Nginx + Lua (OpenResty). It provides IP black/white lists, URL and User-Agent filtering, CC attack protection, and JSON-format attack logging.

## Use cases
- protect nginx-hosted sites from common web attacks
- block malicious IPs with a blacklist
- rate-limit requests to mitigate CC attacks
- filter suspicious URLs and query parameters
- log blocked requests in JSON for ELK analysis

## When to choose
- you already run Nginx or OpenResty and want simple built-in WAF protection
- you need lightweight, rule-based filtering without a separate appliance
- you want JSON attack logs for centralized analysis

## When to avoid
- you need advanced WAF features like full OWASP CRS coverage or machine-learning detection
- you want a managed or actively developed commercial-grade firewall
- you don't control your Nginx/OpenResty configuration

## Facets
- artifact type: library
- maturity: maintenance
- function: security, middleware, logging
- domain: security, web-development, backend
- platform: -
- tags: waf, web-application-firewall, nginx-lua, rate-limiting, ip-blacklist, cc-attack-protection, -logging, nginx, openresty, linux

## Member repositories
- unixhot/waf (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.775200+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:57.845126+00:00, confidence not recorded.
  - readme: https://github.com/unixhot/waf (fetched 2026-08-28T04:04:45.775200+00:00, sha 5f8b5ec71a20)
- Data as of 2026-08-30T08:39:29.467469+00:00.
