Skip to content

Instantly share code, notes, and snippets.

@crahan
Last active May 5, 2017 19:20
Show Gist options
  • Save crahan/a17f06d48223aba4ad3ae3afe5e41d8b to your computer and use it in GitHub Desktop.
Save crahan/a17f06d48223aba4ad3ae3afe5e41d8b to your computer and use it in GitHub Desktop.
Check a list of domains against http://www.doesitusecloudflare.com
#!/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