Skip to content

Instantly share code, notes, and snippets.

@Domin8-IPTV
Last active August 23, 2018 21:38
Show Gist options
  • Save Domin8-IPTV/b74b4e05d8cd6da6e1d1e6240ff4d825 to your computer and use it in GitHub Desktop.
Save Domin8-IPTV/b74b4e05d8cd6da6e1d1e6240ff4d825 to your computer and use it in GitHub Desktop.
block TOR
#!/bin/bash
echo -e "\n\tGetting Tor node list from dan.me.uk\n"
wget -q -O - https://www.dan.me.uk/torlist/ > /tmp/full.tor
CMD=$(cat /tmp/full.tor | uniq | sort)
for IP in $CMD; do
let COUNT=COUNT+1
ufw deny from $IP
done
echo -e "\n\tUFW now blocking TOR connections !\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment