Skip to content

rgglez/cloudflare-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cloudflare-scripts

License: GPL v3 GitHub all releases GitHub issues GitHub commit activity GitHub stars GitHub forks

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.
  • 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.

Use cases

License

Copyright (c) 2026, Rodolfo González González.

Licensed under GPL v3. Read the LICENSE file.

Releases

No releases published

Packages

 
 
 

Contributors