feat(botfilter): add inspectRequest

This commit is contained in:
hoelee committed 2026-04-02 10:05:00 +08:00
1 parent ab86dad3da
commit 770f93061f
1 file changed
+4
+4
View File
@@ -11,3 +11,7 @@ type matchResult struct {
reason string
}
func inspectRequest(r *http.Request, cfg *compiledConfig) matchResult {
paths := requestPaths(r)
userAgent := strings.TrimSpace(r.UserAgent())