#!/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