Last active
May 5, 2017 19:20
-
-
Save crahan/a17f06d48223aba4ad3ae3afe5e41d8b to your computer and use it in GitHub Desktop.
Check a list of domains against http://www.doesitusecloudflare.com
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
#!/bin/bash | |
# Input: list of domains (without 'http://' or trailing '/') | |
for i in `cat $1`; do | |
response=`curl -s http://www.doesitusecloudflare.com/?url=$i | grep "the website uses cloudflare"` | |
if [ "$response" ]; then | |
echo "$i: uses Cloudflare!" | |
#else | |
# echo "$i: OK" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment