Created
July 28, 2013 21:14
-
-
Save magenx/6100271 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
cat iptocf.txt | |
27.153.185.20 | |
220.168.125.60 | |
202.101.111.137 | |
..... | |
#!/bin/bash | |
[email protected] | |
TOKEN=KS0gkGo9QxKzgMBHKqUK5eacrxva1Zux | |
FILE=iptocf.txt | |
while read IPTOCF; do | |
curl -s "https://www.cloudflare.com/api.html?a=ban&key=${IPTOCF}&u=${ACCOUNT}&tkn=${TOKEN}" | |
done < $FILE |
Author
magenx
commented
Feb 20, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment