Miscellaneous scripts for CloudFlare (CF) administration.
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.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 acloudflare-trusted-proxies.lstfile with the IP addresses.gen-nginx-cloudflare.sh-- Bash script which generates a suitable config file for nginx, taking the IPs from thecloudflare-trusted-proxies.lstfile generated byupdate-cloudflare-proxies.shgen-lighttpd-cloudflare.sh-- Bash script which generates a suitable config file for lighttpd, taking the IPs from thecloudflare-trusted-proxies.lstfile generated byupdate-cloudflare-proxies.shfirewall.sh-- Bash script which generatesufwrules to block access to any IP other than those from thecloudflare-trusted-proxies.lstfile.
Copyright (c) 2026, Rodolfo González González.