d
This commit is contained in:
parent
c03dba393b
commit
78e342f61d
20
firewall.sh
20
firewall.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user