Forum Discussion
vyrs_278584
Nimbostratus
Jul 14, 2016APM Header Value in Data Group
I'd like to use APM to limit access to specific URIs. We inject user certificate serial numbers into HTTP headers and I'd like to compare this value with a data group. I setup a empty action box with...
Yann_Desmarest
Cirrus
Jul 14, 2016Hi,
You should define an irule event instead and attach an irule to your Virtual Server. What you are trying to achieve is not permitted under the VPE. You can only use pure TCL scripting.
You can also define an irule that trap this header during the ACCESS_SESSION_STARTED event and save a value in a session variable that you will be able to reuse in the VPE :
when ACCESS_SESSION_STARTED {
if { [HTTP::header exists "S_NUM"] and [class match [HTTP::header "S_NUM"] equals WHITELIST] } {
ACCESS::session data set "session.custom.snum" 1
} else {
ACCESS::session data set "session.custom.snum" 0
}
}
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
