How do i create a location label based condition in AWS WAF?

0

Since november the second its possible to restrict access to a resource based on a specific location such as a state. You can create a label based rule with the rule builder.

I want to restrict access to a cloudfront distribution for certain US states but i can't locate this rule builder anywhere in the WAF console. Where to find this builder and how do i create a label based condition to restrict a US state?

Thanks

1 Answer
0
Accepted Answer

The geographic match rule adds geographic region and country labels to every request that it evaluates, enabling customers to write label match statements according to the regions they wish to block or allow.

You can find it under: Rule builder on the console – Under the rule's Action settings, under Label.

Also refer to https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-add.html and https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-label-match.html

AWS
Lucas
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions