test: cover the encoded scan-path case with the rule it expects to match
ci / middleware (go) (push) Canceled after 0s
ci / py-monitor (python) (push) Canceled after 0s
ci / java-cache (maven) (push) Canceled after 0s
ci / shell-sync (syntax) (push) Canceled after 0s

This commit is contained in:
hoelee committed 2026-11-18 09:06:34 +08:00
1 parent b5e7143742
commit de280a2fd9
39 files changed
+2703 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package traefik_botfilter
import "log"
type filterLogger struct {
name string
enabled bool
}
func (l filterLogger) blocked(ip, reason string, score int) {
if !l.enabled {
return
}
// This is intentionally opt-in. Logging every rejected request during a
// flood can become a second source of CPU and disk pressure.
log.Printf("botfilter[%s]: blocked client=%s reason=%q score=%d", l.name, ip, reason, score)
}