pkhatri_72515
Mar 31, 2010Nimbostratus
Need help with iRule
Dear Experts,
I need help with iRule:
currently i have following iRule: (which is working fine)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/classkb/") or ([string tolower [HTTP::uri]] equals "/classkb") } {
if { not ([matchclass [IP::client_addr] equals $::Classkb_allowed_IPs]) } {
log local0. "Caught [HTTP::uri] from [IP::client_addr]"
HTTP::redirect "http://static.blabla.com/403.htm"
}
}
}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
now we need "/classkb/assests" url to be publically accessed, how would i modify this iRule? Need help with adding another if statement.
Thanks,
PK.