nbs-system/naxsi
FreeNAXSI is an open-source, high performance, low rules maintenance WAF for NGINX
About nbs-system/naxsi
NAXSI (Nginx Anti XSS SQL Injection) is an open-source, high-performance Web Application Firewall (WAF) module for Nginx. It employs a negative security model, meaning it blocks all requests by default and only allows those explicitly whitelisted. The module uses a small set of simple, readable rules that cover 99% of common web attack patterns (such as XSS and SQL injection), making it resistant to unknown attack variants that might bypass signature-based WAFs. NAXSI supports an auto-learning phase that automatically generates whitelisting rules based on normal site behavior, reducing manual configuration effort. It is compatible with most Nginx versions and runs on platforms like Debian, Ubuntu, CentOS, FreeBSD, and OpenBSD. The project is licensed under GPL-3.0 and was originally developed by nbs-system. As of November 2023, the original repository has been archived; active development continues in a fork maintained by wargio.
Key Features
Pros & Cons
- Free and open source (GPL-3.0) with no licensing costs
- High performance, designed as a native Nginx module
- Negative model provides strong protection against both known and novel attack patterns
- Auto-learning reduces manual whitelist creation effort
- Small, readable rules are easy to understand and customize
- Wide platform compatibility
- Project original repository is archived (no further updates); active development moved to a fork
- Requires careful whitelisting to avoid blocking legitimate traffic, which can be time-consuming without auto-learning
- Learning curve for administrators unfamiliar with negative security models
- Only works with Nginx web server
- Limited community support for the archived version