bunkerweb
bunkerweb copied to clipboard
USE_BAD_BEHAVIOR=yes does not work
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.
Hi @rmrf-sl4sh, it should be fixed in the last v1.4.3 version.