Skip to content

Instantly share code, notes, and snippets.

@miohtama
Created August 11, 2023 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miohtama/23c7ba516da1734c2cca80e8a28970f0 to your computer and use it in GitHub Desktop.
Save miohtama/23c7ba516da1734c2cca80e8a28970f0 to your computer and use it in GitHub Desktop.
Cloudflare IP list printer
#!/bin/sh
#
# Prints out the latest Cloudflare IP list.
#
# Note: Third party Cloudflare workers can still access your site even if you
# block traffic from this range.
#
for i in `curl -s https://www.cloudflare.com/ips-v4`; do echo -n "$i "; done
for i in `curl -s https://www.cloudflare.com/ips-v6`; do echo -n "$i "; done
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment