bunkerweb icon indicating copy to clipboard operation
bunkerweb copied to clipboard

USE_BAD_BEHAVIOR=yes does not work

Open rmrf-sl4sh opened this issue 1 year ago • 0 comments

I am enabling the following in my docker-compose.yml file:

USE_BAD_BEHAVIOR=yes
BAD_BEHAVIOR_STATUS_CODES=444 400 403
BAD_BEHAVIOR_THRESHOLD=2
BAD_BEHAVIOR_BAN_TIME=1576800000
BAD_BEHAVIOR_COUNT_TIME=60

Here are two examples from the docker-compose logs -f command:

webapp_1  | xxx.xxx.xxx.xxx - - [28/Jul/2022:21:51:30 +0000] "GET / HTTP/1.1" 444 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
webapp_1  | xxx.xxx.xxx.xxx - - [28/Jul/2022:21:51:34 +0000] "GET / HTTP/1.1" 444 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36"

The logs above do not show the bad behavior counter going up, and bad behavior seems to be unrestricted, despite the request being a 444 error.

rmrf-sl4sh avatar Jul 28 '22 21:07 rmrf-sl4sh

Hi @rmrf-sl4sh, it should be fixed in the last v1.4.3 version.

fl0ppy-d1sk avatar Aug 26 '22 18:08 fl0ppy-d1sk