How to check Accept-Language headers in Firewall Rules

i want to [JS Challenge] Accept-Language don’t have [zh]

Accept-Language: zh,en-US;q=0.7,en;q=0.3 pass
Accept-Language: en-US,en;q=0.9 JS Challenge it

This is new and might work:

EDIT: The link is to a limited access category, but the quote hits the high point, plus the docs link works.

Indeed, that field is only available in Transform Rules right now. I can raise a feature request to get this added to Firewall Rules in the new year :slight_smile:

3 Likes

is ok?

all(http.request.headers[“accept-language”][*] != “zh”)

but why this no work
not all(http.request.headers[“accept-language”][*] contains “zh”)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.