v11: iRules Data Group Updates
Several months ago I wrote up the v10 formatting for internal and external datagroups: iRules Data Group Formatting Rules. In v11, however, there is a change to the format of the internal data group ...
Updated Oct 02, 2023
Version 3.0JRahm
Admin
Joined January 20, 2005
Gullapudi_Venka
Jul 01, 2016Nimbostratus
Thank you so much for the detailed explanation of the data group updates. I have a question. I am trying to save a data group file with some similar cookie elements. Using this data group i would like to reject the HTTP REQUEST. I mean if the HTTP::cookie has any one of the cookies in the data group i created. The HTTP request should be rejected. I will be adding new cookies to the data group on regular basis. So, Can you please giving me an idea of , how to approach or what might be the best way to put an iRule satisfying this situation.
Here is my iRule
when HTTP_REQUEST
{ if { class match -value [HTTP::cookie $aam_uuid] contains Cookie_Rejects } {reject}
}
Data group name is Cookie_Rejects and its internal with one string value.
Consider i updated the data group with one more cookie value today, if a http request come with the updated cookie value it must be rejected with out changing any iRule.
Thanks in advance