feat(botfilter): add botFilter
This commit is contained in:
1 parent
fbe47765b2
commit
9ffc1d6a96
1 file changed
+23
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user