This commit is contained in:
Your Name 2024-09-11 21:46:44 -06:00
parent e47b93a406
commit e5183b35af
2 changed files with 7 additions and 1 deletions

View File

@ -104,3 +104,9 @@
207.231.104.242
47.128.23.132
47.128.41.24
47.128.43.13
47.128.56.78
66.249.68.33
47.128.56.50
47.128.56.72
47.128.52.123

View File

@ -438,7 +438,7 @@ module-get-spam(){
}
module-wordpress(){
WP_SPAM=$( grep $2 $NGINX_ACCESS | grep -E "cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
WP_SPAM=$( grep $2 $NGINX_ACCESS | grep -E "xmrlpc|cgi-bin|wp-content|wp-admin|wp-includes" | wc -l)
if [[ "$WP_SPAM" -gt 2 ]];
then
$NFT add rule ip filter position 1 input ip saddr "$1" $NFT_DROP