Basically I need a way to enable "Under Attack" mode on Clodflare for a specific domain using API when the server is under ddos.
I'm using Apache on Centos.
A script that can check how many active requests are currently on Apache. If the number goes over 1000 for example or the server load is high it should trigger the API to activate Cloudflare "Under Attack" mode.
I also need the API to do that, I will put in the KEY and the domain.
I'm open to other ideas as long as it works.