Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cat iptocf.txt
27.153.185.20
220.168.125.60
202.101.111.137
.....
#!/bin/bash
ACCOUNT=my@gmail.com
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
@magenx

This comment has been minimized.

Copy link
Owner Author

commented Feb 20, 2015

#!/bin/bash 
curl -s "https://www.cloudflare.com/api.html?a=ban&key=$1&u={ACCOUNT}&tkn={TOKEN}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.