fix
This commit is contained in:
parent
e796c054f5
commit
87c9c30853
@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-accounts DDOS Attack "
|
||||
echo $ATTACK
|
||||
SEARCH_SPAM=$(grep $2 $ACCESS | grep "api/v1/accounts" | grep $1 | wc -l)
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
|
@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-instance DDOS Attack "
|
||||
echo $ATTACK
|
||||
SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "api/v1/instance" | grep $1 | wc -l)
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
|
@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-search DDOS Attack "
|
||||
echo $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
|
||||
|
@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-timeline-home DDOS Attack "
|
||||
echo $ATTACK
|
||||
SEARCH_SPAM=$(grep $2 $ACCESS | grep -E "timelines/home" | grep $1 | wc -l)
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
|
@ -3,7 +3,6 @@ FIREWALL="/opt/firewall/firewall.sh"
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-akkoma-timeline-public DDOS Attack "
|
||||
echo $ATTACK
|
||||
SEARCH_SPAM=$(grep $2 $ACCESS | grep "timelines/public" | grep $1 | wc -l)
|
||||
CHECK=$(cat $NFT_CACHE | sort -u | grep $1)
|
||||
if [[ "$SEARCH_SPAM" -gt 30 ]]; then
|
||||
|
@ -2,7 +2,6 @@
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-get-spam DDOS Attack "
|
||||
echo $ATTACK
|
||||
GET_SPAM=$(grep $2 $ACCESS | grep -E "GET / HTTP" | wc -l)
|
||||
if [[ "$GET_SPAM" -gt 20 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
@ -2,7 +2,6 @@
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-go DDOS Attack "
|
||||
echo $ATTACK
|
||||
GO_SPAM=$(grep $2 $ACCESS | grep -E "Go-http-client" | wc -l)
|
||||
if [[ "$GO_SPAM" -gt 10 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
@ -2,7 +2,6 @@
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-lightning DDOS Attack "
|
||||
echo $ATTACK
|
||||
LN_SPAM=$(grep $2 $ACCESS | grep "lnurlp/verita84" | wc -l)
|
||||
if [[ "$LN_SPAM" -gt 5 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
@ -2,7 +2,6 @@
|
||||
FIREWALL="/opt/firewall/firewall.sh"
|
||||
ACCESS="/tmp/minute.log"
|
||||
ATTACK="module-php DDOS Attack "
|
||||
echo $ATTACK
|
||||
PHP_SPAM=$(grep $2 $ACCESS | grep -E ".php|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
|
||||
if [[ "$PHP_SPAM" -gt 10 ]]; then
|
||||
bash $FIREWALL ipBlockParser "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user