Forum Discussion
Yann_Desmarest_
Apr 25, 2016Nacreous
Hello,
You can do the following :
when HTTP_REQUEST {
if { [HTTP::header exists "Customheader"] and ([HTTP::header "Customheader"] contains "CF53DD5F68BBFC30DFTG5A31A8A41B8AS") } {
do nothing
} else {
reject
}
}
or you can negate the if condition :
when HTTP_REQUEST {
if { !([HTTP::header exists "Customheader"] and ([HTTP::header "Customheader"] contains "CF53DD5F68BBFC30DFTG5A31A8A41B8AS")) } {
reject
}
}
- Yann_Desmarest_Apr 25, 2016Nacreousor you can simply do this directly within your ltm policy