diff --git a/botfilter.go b/botfilter.go new file mode 100644 index 00000000..70a9da88 --- /dev/null +++ b/botfilter.go @@ -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 +} +