Reputation: 21
I use one ALB, and there are two target groups. I change the traffic by the host name.
I'm thinking to use aws WAF to ALB. I saw path matching condition, but it seems to be for URL resources such as /users, /admin What I want to do is changing the WAF rule for stg and prd. How can I do this? Can we specify the target group or host name match?
Upvotes: 0
Views: 979
Reputation: 238081
You could create a rule based on Referer header. The use of Referer
is not a bulletproof solution as Referer
can be spoofed, but it could suit your needs nevertheless. Similarly you could look at a rule based on All query parameters.
Upvotes: 1