Skip to main content

Web Application Firewall and threat detection for Python applications

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nginx_defender-2.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nginx_defender-2.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file nginx_defender-2.0.0.tar.gz.

File metadata

  • Download URL: nginx_defender-2.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for nginx_defender-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e253f12688e933dc58c7d2206820d4ae7a5ba7d59dc6e0f5e439b41488cc26a1
MD5 981afdbe61b057cf592aca2910296463
BLAKE2b-256 9da66f4642e8f4335ac73dfbbdbf3a84be2a1fa5106fb8dffbc71d4cdab83978

See more details on using hashes here.

File details

Details for the file nginx_defender-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: nginx_defender-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for nginx_defender-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe22faa82b3247fe1009b9f36f9f155b90f08d47166b5f0028e1599d30876a2
MD5 2eeb0cd4f45d20e7a68c4f1353a257ab
BLAKE2b-256 207a1bdf64162c7c979fa874d5012484156fcd2049499934abca7074f00e8020

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page