From 2524a71b45192e30a342e271258a6f8f9c30a4a7 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 19 Dec 2023 11:32:20 -0500 Subject: [PATCH] switch to newer Stop Forum Spam format --- nginx/nginx.conf | 2 +- stopforumspam-update | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 214f429..175554c 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -143,7 +143,7 @@ http { geo $registration_blocked { default 0; include stopforumspam-toxic_ip_cidr.conf; - include stopforumspam-bannedips.conf; + include stopforumspam-listed_ip_90.conf; include blocked.conf; } diff --git a/stopforumspam-update b/stopforumspam-update index 2b79d0d..bc5f293 100755 --- a/stopforumspam-update +++ b/stopforumspam-update @@ -4,6 +4,6 @@ set -o errexit -o nounset -o pipefail curl --fail-with-body https://www.stopforumspam.com/downloads/toxic_ip_cidr.txt | awk '{ print $1 " 1;" }' > /etc/nginx/stopforumspam-toxic_ip_cidr.conf.new mv /etc/nginx/stopforumspam-toxic_ip_cidr.conf.new /etc/nginx/stopforumspam-toxic_ip_cidr.conf -curl --fail-with-body https://www.stopforumspam.com/downloads/bannedips.csv.gz | gunzip | tr ',' '\n' | awk '{ print $1 " 1;" }' > /etc/nginx/stopforumspam-bannedips.conf.new -mv /etc/nginx/stopforumspam-bannedips.conf.new /etc/nginx/stopforumspam-bannedips.conf +curl --fail-with-body https://www.stopforumspam.com/downloads/listed_ip_90.gz | gunzip | awk '{ print $1 " 1;" }' > /etc/nginx/stopforumspam-listed_ip_90.conf.new +mv /etc/nginx/stopforumspam-listed_ip_90.conf.new /etc/nginx/stopforumspam-listed_ip_90.conf nginx -s reload