Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wilfredjonathanjames/5899f841d9dfea9b1437efb4cb00eea2 to your computer and use it in GitHub Desktop.
Save wilfredjonathanjames/5899f841d9dfea9b1437efb4cb00eea2 to your computer and use it in GitHub Desktop.
(curl -s https://www.cloudflare.com/ips-v{4,6} | sed "s|^|allow |g" | sed "s|\$|;|g" && printf "\ndeny all;\n") > /etc/nginx/cloudflare-whitelist.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment