Merge pull request #32 from unixfox/patch-2

remove blocking when brotli is not supported and add blocking when gzip and deflate aren't supported
This commit is contained in:
Alexandre Flament 2020-04-27 10:29:27 +02:00 committed by GitHub
commit cb0ed57b71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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": [