nginx-defender Python Package
Python bindings for the nginx-defender Web Application Firewall and threat detection system.
Installation
pip install nginx-defender
Quick Start
from nginx_defender import NginxDefender
# Initialize the defender
defender = NginxDefender()
# Start monitoring
defender.start()
# Check if an IP should be blocked
if defender.should_block("192.168.1.100"):
print("IP should be blocked!")
# Monitor log files
defender.monitor_log_file("/var/log/nginx/access.log", "combined")
Features
- Real-time threat detection
- IP blocking and monitoring
- Log file analysis
- Flask and Django middleware integration
- Configurable threat scoring
- Geolocation-based filtering
Documentation
For full documentation, visit: https://github.com/Anipaleja/nginx-defender
License
MIT License - see LICENSE file for details.
Metadata
Release files for nginx-defender 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nginx_defender-2.0.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nginx_defender-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / nginx_defender-2.0.0.tar.gz
| Download URL | nginx_defender-2.0.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e253f12688e933dc58c7d2206820d4ae7a5ba7d59dc6e0f5e439b41488cc26a1
|
|
BLAKE2b-256 checksum How to use checksums |
9da66f4642e8f4335ac73dfbbdbf3a84be2a1fa5106fb8dffbc71d4cdab83978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / nginx_defender-2.0.0-py3-none-any.whl
| Download URL | nginx_defender-2.0.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fe22faa82b3247fe1009b9f36f9f155b90f08d47166b5f0028e1599d30876a2
|
|
BLAKE2b-256 checksum How to use checksums |
207a1bdf64162c7c979fa874d5012484156fcd2049499934abca7074f00e8020
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|