You can use this CLI script to enable and disable the CloudFlare DDOS protection for your website automatically based on the CPU load of your server.