You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miscellaneous scripts for CloudFlare (CF) administration.
Scripts
purge_cf_cache.pl -- Perl script which executes purges of CF cache, with several options. See the script's help or POD for more information.
cf-add-domains.pl -- Perl script which bulk-adds domains as CF zones, reading them from a file (--file), and prints the nameservers to be configured at the registrar. Verifies the API token and lists the visible accounts with --whoami, and validates the file without making changes with --dry-run. Uses only core Perl modules, no Node.js nor wrangler required. See the script's help for more information.
update-cloudflare-proxies.sh -- Bash script which updates Cloudflare proxies IP list, to block access to any address but those of Cloudflare's proxies servers. Generates a cloudflare-trusted-proxies.lst file with the IP addresses.
gen-nginx-cloudflare.sh -- Bash script which generates a suitable config file for nginx, taking the IPs from the cloudflare-trusted-proxies.lst file generated by update-cloudflare-proxies.sh
gen-lighttpd-cloudflare.sh -- Bash script which generates a suitable config file for lighttpd, taking the IPs from the cloudflare-trusted-proxies.lst file generated by update-cloudflare-proxies.sh
firewall.sh -- Bash script which generates ufw rules to block access to any IP other than those from the cloudflare-trusted-proxies.lst file.