Compare commits

...

2 Commits

Author SHA1 Message Date
Your Name
986b619aa7 Merge branch 'main' of https://git.poster.place/verita84/firewall 2024-09-25 03:32:06 +00:00
Your Name
78e342f61d d 2024-09-25 03:32:05 +00:00

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