Skip to content

Commit

Permalink
filter out IPv4 Tor exit nodes from SFS listed IPs
Browse files Browse the repository at this point in the history
This list doesn't include IPv6 addresses and SFS includes those as /64
blocks so filtering them out would be a bit more complex.
  • Loading branch information
thestinger committed Dec 19, 2023
1 parent 99a7b4c commit 5b6308f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stopforumspam-update
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ if [[ $mode == hourly ]]; then
curl --fail-with-body https://www.stopforumspam.com/downloads/listed_ip_1.zip | gunzip | awk '{ print $1 " 1;" }' > stopforumspam-listed_ip_1_ipv46.conf.new
mv stopforumspam-listed_ip_1_ipv46.conf.new stopforumspam-listed_ip_1_ipv46.conf

cat stopforumspam-listed_ip_30_ipv46.conf stopforumspam-listed_ip_1_ipv46.conf | sort -u > stopforumspam-listed_ip_merged_ipv46.conf
curl --fail-with-body https://check.torproject.org/torbulkexitlist | sort -u > torbulkexitlist.txt

cat stopforumspam-listed_ip_30_ipv46.conf stopforumspam-listed_ip_1_ipv46.conf | sort -u | comm -1 -3 torbulkexitlist.txt - > stopforumspam-listed_ip_merged_ipv46.conf

nginx -s reload
fi

0 comments on commit 5b6308f

Please sign in to comment.