This commit is contained in:
Your Name 2024-09-26 09:09:22 -06:00
parent 3e133c7c0d
commit f014885ae6
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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"