Last active
August 23, 2018 21:38
-
-
Save Domin8-IPTV/b74b4e05d8cd6da6e1d1e6240ff4d825 to your computer and use it in GitHub Desktop.
block TOR
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
#!/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