Search

국가 코드가 한국이 아닌 곳 차단

우선 순위 올려줘야 적용될 수 있으므로 주의하기
{ "Name": "BlockNonKoreaCountry", "Priority": 2, "Statement": { "NotStatement": { "Statement": { "GeoMatchStatement": { "CountryCodes": ["KR"] } } } }, "Action": { "Block": { "CustomResponse": { "ResponseCode": 403, "CustomResponseBodyKey": "error-text" } } }, "VisibilityConfig": { "SampledRequestsEnabled": true, "CloudWatchMetricsEnabled": true, "MetricName": "BlockNonKoreaCountry" } }
JSON
복사