Skip to content

Commit

Permalink
switch to newer Stop Forum Spam format
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Dec 19, 2023
1 parent 7d3a5e3 commit 2524a71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions stopforumspam-update
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2524a71

Please sign in to comment.