Created
April 20, 2020 14:56
-
-
Save Myer921/ea00994351c171f8064b6ec09780c01f to your computer and use it in GitHub Desktop.
banip.sh
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
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