This script scans Millions of Cloudflare IP addresses and generates a result file containing the IPs which are work with CDN.
This script uses v2ray+vmess+websocket+tls by default and if you want to use it behind your Cloudflare proxy then you have to set up a vmess account, otherwise, it will use the default configuration.
For Linux find out here.
This script also exists in docker, find out here.
This script is also available for windows here.
You can find a video guide for this script on youtube.