diff --git a/tor-block.sh b/tor-block.sh new file mode 100644 index 0000000..36f99f2 --- /dev/null +++ b/tor-block.sh @@ -0,0 +1,4 @@ +#!/bin/bash +url="https://check.torproject.org/torbulkexitlist" +wget -q "$url" -O /tmp/.tor.lst +while read -r ipTor; do echo "$ipTor"; iptables -A INPUT -s $ipTor -j DROP; done < /tmp/.tor.lst