Forum Discussion
Gullapudi_Venka
Nimbostratus
Jun 30, 2016Utilization of Data group in an iRule
I am trying to write an iRule that will reject the IP::Client_IP_addr if the HTTP_REQUEST had a certain cookie.
I placed the multiple cookie items in the data group named Cookie_datagroup.
when HTTP_REQUEST { if { [class match [HTTP::cookie] equals Cookie_datagroup] } { reject }
}
Can i please get help in getting this to work. I am not able to figure what is the mistake.
Thanks in advance.
1 Reply
- Vijay_E
Cirrus
Two options:
when HTTP_REQUEST { if { [class match [HTTP::cookie names] contains Cookie_datagroup] } { reject } }Alternate option:
when HTTP_REQUEST { if { [HTTP::cookie exists "old-cookie-name"] } { reject } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects