fix
This commit is contained in:
parent
3e133c7c0d
commit
f014885ae6
@ -305,6 +305,7 @@ watch() {
|
||||
redis-cli SADD tmp_block $i
|
||||
ipBlockParser $i
|
||||
message "Blocking IP: $i with a count of: $COUNT"
|
||||
cp -f $ACCESS /tmp/high-traffic-$i.txt
|
||||
else
|
||||
echo
|
||||
echo "Skipping Duplicate IP"
|
||||
|
@ -5,7 +5,7 @@ ATTACK="module-akkoma-accounts"
|
||||
COUNT_SPAM=$(grep $2 $3 | grep "api/v1/accounts" | grep $1 | wc -l)
|
||||
SEARCH_SPAM=$(($COUNT_SPAM))
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ $SEARCH_SPAM -gt 100 ]]; then
|
||||
if [[ $SEARCH_SPAM -gt 140 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user