acl规则,格式为数组,数组元素格式为{"acl_action":"allow","acl_matcher":{"ip":{"operator":"=","value":"1.1.1.1"}}}
acl_action可选值为reject、allow;
acl_matcher可选的键值有ip、host、accept_language、user_agent、referer、uri、req_uri、req_method、country_iso_code;
operator可选值有=、!=、!contain、contain、!AC、AC。
当operator值为!AC或AC时,value值格式需要为数组。
完整规则例子:[{"acl_action": "allow", "acl_matcher": {"ip": {"operator": "=", "value": "1.1.1.1"}}},{"acl_action": "reject", "acl_matcher": {"ip": {"operator": "=", "value": "8.8.8.8"}}}]
解释:允许来自IP用户1.1.1.1的请求,拒绝来自IP用户8.8.8.8的请求