remove blocking when brotli is not supported and add blocking when gzip and deflate arent supported

This commit is contained in:
Émilien Devos 2020-04-26 09:29:12 +00:00 committed by Emilien Devos
parent 8ec3e067bc
commit b23ecfe8ae
1 changed files with 12 additions and 2 deletions

View File

@ -71,8 +71,18 @@
]
},
{
"name": "block no brotli support",
"filters": ["!Header:Accept-Encoding=[; ]?br[; ]?"],
"name": "block no gzip support",
"filters": ["!Header:Accept-Encoding=(^gzip$|^gzip[;,]|[; ]gzip$|[; ]gzip[;,])"],
"limit": 0,
"stop": true,
"actions": [
{"name": "block",
"params": {"message": "Rate limit exceeded"}}
]
},
{
"name": "block no deflate support",
"filters": ["!Header:Accept-Encoding=(^deflate$|^deflate[;,]|[; ]deflate$|[; ]deflate[;,])"],
"limit": 0,
"stop": true,
"actions": [