This commit is contained in:
Your Name 2024-09-25 03:32:05 +00:00
parent c03dba393b
commit 78e342f61d

View File

@ -307,26 +307,6 @@ forgive() {
rateLimit $HTTP_LIMIT
}
module-get-spam() {
ATTACK="module-get-spam DDOS Attack "
GET_SPAM=$(grep $2 $ACCESS | grep -E "GET / HTTP" | wc -l)
if [[ "$GET_SPAM" -gt 20 ]]; then
ipBlockParser "$1"
redis-cli SADD tmp_block $1
message "$ATTACK $1"
fi
}
module-lightning() {
ATTACK="module-lightning DDOS Attack "
LN_SPAM=$(grep $2 $ACCESS | grep "lnurlp/verita84" | wc -l)
if [[ "$LN_SPAM" -gt 5 ]]; then
ipBlockParser "$1"
message "$ATTACK $1"
redis-cli SADD tmp_block $1
fi
}
watch() {
echo "Scanning $DATE"
echo