mirror of
https://github.com/fabriziosalmi/caddy-waf.git
synced 2025-12-23 14:17:45 -05:00
31 lines
911 B
Go
31 lines
911 B
Go
// Package caddywaf provides Web Application Firewall (WAF) functionality as a Caddy module.
|
|
//
|
|
// Module ID: http.handlers.waf
|
|
// Module type: HTTP handler middleware
|
|
//
|
|
// This module implements comprehensive web security features including:
|
|
// - Regex-based request filtering
|
|
// - IP and DNS blacklisting
|
|
// - Geographic access control
|
|
// - Rate limiting with configurable windows
|
|
// - Anomaly detection and scoring
|
|
// - Multi-phase request inspection
|
|
// - Real-time metrics and monitoring
|
|
// - Custom response handling
|
|
// - Dynamic configuration reloading
|
|
//
|
|
// Installation:
|
|
//
|
|
// xcaddy build --with github.com/fabriziosalmi/caddy-waf
|
|
//
|
|
// Basic usage in Caddyfile:
|
|
//
|
|
// waf {
|
|
// rule_file rules.json
|
|
// ip_blacklist_file blacklist.txt
|
|
// metrics_endpoint /waf_metrics
|
|
// }
|
|
//
|
|
// For complete documentation, see: https://github.com/fabriziosalmi/caddy-waf
|
|
package caddywaf
|