Hardened Mode for Nginx
v1.0-L7-Host | v1.0-L3-CDN | |
---|---|---|
1. Server Name Validation | O | ❌ |
2. Source IP Address Validation | ❌ | O |
3. Auto Update Trusted IPs List | ❌ | O |
4. Immediately Error Reporting | O | O |
- If a request ask for server name out of trusted list, it'll be drop immediately.
- If a request comes from an address out of trusted list, it'll be drop immediately.
- Make it easier to deal with IPs lists provided by numerous well-known services which changed frequently.
Currently supported: CloudFlare, Fastly.
- Auto reporting while failed over to Normal Mode (Behavior of Original Nginx) by WebHook.
- ✅ Server name validation
- ✅ Source IP address validation
- ✅ IP List of CDN (ex: cloudflare, fastly...etc)
- 🚀 IP List of Public Cloud (ex: gcp, azure, aws, akamai... etc)
- 🚀🚀 Secret Sauce :)
- Commands
nginx -s reload
andnginx -s stop
might fail in certain conditions. If encounter such error, you might have to kill nginx processes manually.