LeWAF - Python Web Application Firewall¶
A Web Application Firewall for Python that stops attacks before they reach your application code, with comprehensive audit logging and compliance support.
Features¶
- Attack Prevention - SQL injection, XSS, command injection, path traversal
- Framework Support - FastAPI, Flask, Django, Starlette
- OWASP CRS Compatible - CRS 4.21, 765 rules; 100% agreement with OWASP Coraza on the identical ruleset
- Compliance Ready - PCI-DSS and GDPR compliant audit logging
- High Performance - <5ms latency overhead with regex caching
Quick Installation¶
Basic Usage¶
Why LeWAF?¶
Protect Your Application¶
Most web applications handle sensitive data and are exposed to automated attacks. LeWAF blocks SQL injection, XSS, and command injection attempts at the middleware layer, before they reach your business logic.
Meet Compliance Requirements¶
Organizations subject to PCI-DSS, GDPR, or SOC 2 need audit logs showing what security controls are in place. LeWAF provides structured logging with automatic data masking.
Reduce Security Maintenance¶
LeWAF uses the OWASP Core Rule Set (CRS), maintained by security experts. Deploy rule updates without changing your application code.
Next Steps¶
- Quick Start Guide - Get started in 5 minutes
- Framework Integration - Detailed integration guides
- Custom Rules - Write your own security rules
- API Reference - Complete API documentation