Skip to content

Instantly share code, notes, and snippets.

@darookee
Created January 27, 2017 10:36
Show Gist options
  • Save darookee/d380b07cc84a1dc6797a561e5b6ba7c0 to your computer and use it in GitHub Desktop.
Save darookee/d380b07cc84a1dc6797a561e5b6ba7c0 to your computer and use it in GitHub Desktop.
Add all current tor exit nodes to hosts.deny
{ 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