Created
August 11, 2023 10:13
-
-
Save miohtama/23c7ba516da1734c2cca80e8a28970f0 to your computer and use it in GitHub Desktop.
Cloudflare IP list printer
This file contains hidden or 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/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