1 Answer
- Newest
- Most votes
- Most comments
1
I think the problem is your use of the wildcard in your search string. The string match condition is "contains string," so in order to match on both the examples you've provided, you would need to change it to "/test"
If /test will always be at the start of the URI path then you should change the string match condition to "starts with string" as this consumes fewer WCUs.
Documentation for this can be found here: https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-string-match.html
Relevant content
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
but what if I want to set URI --> /test/a/* what should be string match condition? and for abc.example.com/* what should be string match condition?