Metadata-Version: 2.4
Name: nginx-defender
Version: 2.0.0
Summary: Web Application Firewall and threat detection for Python applications
Author-email: nginx-defender team <support@nginx-defender.com>
Project-URL: Homepage, https://github.com/Anipaleja/nginx-defender
Project-URL: Bug Reports, https://github.com/Anipaleja/nginx-defender/issues
Project-URL: Source, https://github.com/Anipaleja/nginx-defender
Project-URL: Documentation, https://github.com/Anipaleja/nginx-defender/docs
Keywords: waf,security,firewall,threat-detection,nginx,protection
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Security
Classifier: Topic :: System :: Networking :: Firewalls
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Requires-Dist: typing-extensions>=4.0.0; python_version < "3.10"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: flake8>=5.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"

# nginx-defender Python Package

Python bindings for the nginx-defender Web Application Firewall and threat detection system.

## Installation

```bash
pip install nginx-defender
```

## Quick Start

```python
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.
