This commit is contained in:
Your Name 2024-09-25 15:27:05 -06:00
parent 945e1bbd40
commit cecc47c718
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ MY_IP=($(redis-cli --raw SMEMBERS my_ip))
ATTACK_THRESHOLD="50"
NGINX_ACCESS="/tmp/access.log"
ACCESS="/tmp/minute.log"
HTTP_LIMIT="200"
HTTP_LIMIT="150"
RATE_LIMITED_HTTP="30"
MODULES="/opt/firewall/modules"
TMP_BLOCK_TIMEOUT="20"

View File

@ -7,4 +7,5 @@ if [[ "$PHP_SPAM" -gt 10 ]]; then
bash $FIREWALL ipBlockParser "$1"
bash $FIREWALL message "$ATTACK-$1"
redis-cli SADD tmp_block $1
cp -f $ACCESS /tmp/debug-$ATTACK-$1.txt
fi