diff --git a/modules/module-akkoma-timeline-public.sh b/modules/module-akkoma-timeline-public.sh index 19fb19d..16fb07e 100644 --- a/modules/module-akkoma-timeline-public.sh +++ b/modules/module-akkoma-timeline-public.sh @@ -5,7 +5,7 @@ ATTACK="module-akkoma-timeline-public" COUNT_SPAM=$(grep $2 $3 | grep "timelines/public" | grep $1 | wc -l) SEARCH_SPAM=$(($COUNT_SPAM)) CHECK=$(cat $NFT_CACHE | sort -u | grep $1) -if [[ "$SEARCH_SPAM" -gt 30 ]]; then +if [[ $SEARCH_SPAM -gt 30 ]]; then echo "$IP $CHECK $COUNT" if [ "$CHECK" = "" ]; then bash $FIREWALL ipBlockParser "$1" diff --git a/modules/module-php.sh b/modules/module-php.sh index 75d61d2..e30d2bd 100644 --- a/modules/module-php.sh +++ b/modules/module-php.sh @@ -2,7 +2,7 @@ FIREWALL="/opt/firewall/firewall.sh" ATTACK="module-php" PHP_SPAM=$(grep $2 $3 | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l) -if [[ "$PHP_SPAM" -gt 10 ]]; then +if [[ $PHP_SPAM -gt 10 ]]; then bash $FIREWALL ipBlockParser "$1" bash $FIREWALL message "$ATTACK-$1" redis-cli SADD tmp_block $1