Skip to content

Commit

Permalink
use Stop Forum Spam IPv6 address bans too
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Dec 19, 2023
1 parent 2524a71 commit 929816a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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-listed_ip_90.conf;
include stopforumspam-listed_ip_90_ipv46.conf;
include blocked.conf;
}

Expand Down
2 changes: 1 addition & 1 deletion 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/listed_ip_90.gz | gunzip | awk '{ print $1 " 1;" }' > /etc/nginx/stopforumspam-listed_ip_90.conf.new
curl --fail-with-body https://www.stopforumspam.com/downloads/listed_ip_90_ipv46.zip | gunzip | awk '{ print $1 " 1;" }' > /etc/nginx/stopforumspam-listed_ip_90_ipv46.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 929816a

Please sign in to comment.