Compare commits
2 Commits
3725d7e503
...
f901a34bad
Author | SHA1 | Date | |
---|---|---|---|
|
f901a34bad | ||
|
e1aacd8200 |
21
firewall.sh
21
firewall.sh
@ -324,23 +324,6 @@ module-akkoma-accounts() {
|
||||
fi
|
||||
}
|
||||
|
||||
module-akkoma-search() {
|
||||
ATTACK="module-akkoma-search DDOS Attack "
|
||||
SEARCH_SPAM=$(grep $2 $ACCESS | grep "api/v2/search" | grep $1 | wc -l)
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 10 ]]; then
|
||||
echo "$IP $CHECK $COUNT"
|
||||
if [ "$CHECK" = "" ]; then
|
||||
ipBlockParser "$1"
|
||||
redis-cli SADD tmp_block $1
|
||||
message "$ATTACK $1"
|
||||
echo "$ATTACK $1"
|
||||
else
|
||||
echo "$ATTACK Ignoring Duplicate IP: $1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
module-akkoma-instance() {
|
||||
ATTACK="module-akkoma-instance DDOS Attack "
|
||||
SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "api/v1/instance" | grep $1 | wc -l)
|
||||
@ -422,8 +405,8 @@ watch() {
|
||||
module-akkoma-timeline-public "$i" "$DATE"
|
||||
module-akkoma-timeline-home "$i" "$DATE"
|
||||
module-akkoma-accounts "$i" "$DATE"
|
||||
module-akkoma-search "$i" "$DATE"
|
||||
module-lightning "$i" "$DATE"
|
||||
bash $MODULES/module-akkoma-search.sh "$i" "$DATE"
|
||||
bash $MODULES/module-lightning.sh "$i" "$DATE"
|
||||
bash $MODULES/module-php.sh "$i" "$DATE"
|
||||
bash $MODULES/module-go.sh "$i" "$DATE"
|
||||
module-get-spam "$i" "$DATE"
|
||||
|
Loading…
Reference in New Issue
Block a user