nG-SetEnvIf
a project of Open Source by Tonkünstler-on-the-Bund
nG-SetEnvIf was created as a fork of the nG Firewall that replicates its functionality in httpd using mod_setenvif and tracks upstream release. The trade-off is between the efficiency gained over mod_rewrite and having to defer to any existing rewrite rules (eg for permalink settings).
The focus being on performance, no logging facility is provided in addition to httpd's native logs. Backreference support has been removed to minimise memory footprint.
Note
Use mod_rewrite for testing before deploying nG-SetEnvIf.
Use case: httpd.conf
Requires: mod_setenvif, mod_authz_core, mod_log_config
Documentation: Using mod_rewrite to control access
Known issues & recipes: See project Wiki
Upstream: 8G v1.2, courtesy of Jeff Starr
Idea for fork: Port these rules to Cloudflare's free-tier WAF
Our Sponsor: