package botfilter import ( "net/http" "strings" ) type matchResult struct { points int forceBan bool reason string } func inspectRequest(r *http.Request, cfg *compiledConfig) matchResult { paths := requestPaths(r) userAgent := strings.TrimSpace(r.UserAgent())