feat(botfilter): add inspectRequest
This commit is contained in:
1 parent
ab86dad3da
commit
770f93061f
1 file changed
+4
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user