-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Issue Details
Use case: trying to block spam requests and also not log them
@naughtyUserAgents {
# Literally just spams favicon.ico. Not related with DuckDuckGo
header User-Agent *ddg_win*
}
log_skip @naughtyUserAgents
abort @naughtyUserAgentsThis doesn't work as I expected: it skips the log but allows the request through.
Wrapping it with a handle does work correctly:
handle @naughtyUserAgents {
log_skip
abort
}Interestingly, this works:
handle_errors {
log_skip @matcher
abort @matcher
}Assistance Disclosure
AI not used
If AI was used, describe the extent to which it was used.
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels