Created
January 27, 2017 10:36
-
-
Save darookee/d380b07cc84a1dc6797a561e5b6ba7c0 to your computer and use it in GitHub Desktop.
Add all current tor exit nodes to hosts.deny
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ curl -s "https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=$(curl -s ipv4.ipchimp.net)&port=80"|sed 's/^[^#]/ALL\: /g'; cat /etc/hosts.deny ;} |sort|uniq -u|sed 's/^#.*//g' > /etc/hosts.deny |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment