Forum Discussion
URL
Could you please help to check if any cookies or header can be applied from WAF end for the url https://abc.com.
We need to apply few rules in WAF and application for redirecting certain users to specific server and few to other servers.
Hi Kuldeep22,
sure, you can do this with iRules:
when HTTP_REQUEST priority 500 { if { [HTTP::cookie exists "Name_of_your_Cookie"] } { ASM::disable pool name_of_your_pool } else { ASM::enable "/Common/name_of_your_ASM_policy" pool name_of_your_other_pool } }
This iRule will check if a cookie with the name Name_of_your_Cookie exists. If yes, it will disable ASM and assign a pool. If no, it will enable a specific ASM policy and assign a different pool.
Of course this is just a suggestion, with iRules the sky is the limit for such use cases.Probably you can also do this with Local Traffic Policies. But I don't use them a lot, so I cannot tell you how that would look like.
KR
Daniel- Kuldeep22Altostratus
Could i achieve this by using local traffic
Could you please help to check if any cookies or header can be applied from WAF end for the url https://abc.com.
We need to apply few rules in WAF and application for redirecting certain users to specific server and few to other servers.
Could i achieve this by using local traffic
I guess yes.
Could you please help to check if any cookies or header can be applied from WAF end for the url https://abc.com.
Yes, you can add cookies to the HTTP Response with iRules.
See: https://clouddocs.f5.com/api/irules/HTTP__cookie.html- zamroni777Nacreous
you can apply the cookies using irules or local traffic policy assigned to the ltm virtual server related to the asm/waf profile
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com