Forum Discussion
Steve_Brown_882
Mar 20, 2011Historic F5 Account
No that will not work because $rpcdata is a variable so in you rule it will never b = 0 actually it is never defined. When you say you don't know how the request will reach the f5 are you concerned with case? If so just use string to lower like below. By the way if this is for outlook anywhere it will arrive starting wit /rpc as this is what the outlook client sends. Actually you could use eq "/rpc/rpcproxy.dll" as this is what it should always be.
when HTTP_CLASS_SELECTED {
if { [string tolower [HTTP::uri]] starts_with "/rpc" } {
ASM::disable
} else {
ASM::enable
}
}