MertcanGokgoz

Block Tor

Dec 20th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. ipset -N blocktor iphash
  2.  
  3. curl -s https://www.dan.me.uk/torlist/ | sed '/^#/d' | while read adress
  4. do
  5.   ipset -q -A blocktor $adress
  6. done
  7.  
  8. iptables -A INPUT -m set --match-set blocktor src -j DROP
Add Comment
Please, Sign In to add comment