How to set a domoain on `I'm under attack mode` using API

I’d like to be able put my site on I'm under attack mode automatically using API requests. I monitor server load and when it reached certain maximum, which indicate a possible DDoS attack, I’d like put the site more firewall protection, and return back to normal when load gets back to normal.

I appreciate your help on how to do .

Hi @esitoric,

It is possible with the API documented here:
https://api.cloudflare.com/#zone-settings-change-security-level-setting

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.