Skip to content

Instantly share code, notes, and snippets.

@Myer921
Created April 20, 2020 14:56
Show Gist options
  • Save Myer921/ea00994351c171f8064b6ec09780c01f to your computer and use it in GitHub Desktop.
Save Myer921/ea00994351c171f8064b6ec09780c01f to your computer and use it in GitHub Desktop.
banip.sh
rm old.blackip.txt
wget http://blackip.ustc.edu.cn/mailblackip.php?txt -O old.blackip.txt 2>/dev/null
for i in `cat old.blackip.txt`; do
ip route add $i dev lo;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment