user-agent block

Hello, I want to ban the user agents that I set with the code below. How can I do this for all domains registered in the account?

curl -X POST "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/firewall/ua_rules" \
 -H "X-Auth-Email: [email protected]" \
 -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
 -H "Content-Type: application/json" \
 --data '{"id":"372e67954025e0ba6aaa6d586b9e0b59","paused":false,"description":"Prevent access from abusive clients identified by this UserAgent to mitigate DDoS attack","mode":"js_challenge","configuration":{"target":"ua","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4"}}'

There are very few account-wide settings, and Use Agent blocking is not one of them. I’m afraid you’ll have to add that to each domain in your account through Firewall → Tools.

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