feat(botfilter): add botFilter

This commit is contained in:
hoelee committed 2026-05-13 16:30:00 +08:00
1 parent fbe47765b2
commit 9ffc1d6a96
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
// Package traefik_botfilter is a Traefik middleware plugin that blocks known scans
// and applies a bounded, in-memory per-IP suspicion score.
package botfilter
import (
"bufio"
"context"
"fmt"
"io"
"net"
"net/http"
"net/netip"
"strconv"
"time"
)
type botFilter struct {
next http.Handler
config *compiledConfig
cache *clientCache
logger filterLogger
}