-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdoc.go
More file actions
36 lines (36 loc) · 1.08 KB
/
doc.go
File metadata and controls
36 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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:
//
// Option 1 - Using caddy add-package (recommended if Caddy is already installed):
//
// caddy add-package github.com/fabriziosalmi/caddy-waf
//
// Option 2 - Building from source with xcaddy:
//
// 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