Forum Discussion
pkhatri_72515
Nimbostratus
Mar 31, 2010Need help with iRule
Dear Experts,
I need help with iRule:
currently i have following iRule: (which is working fine)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
wh...
Jason_Keating
Altostratus
Mar 31, 2010How about something along the lines of this.
when HTTP_REQUEST {
set path [string tolower [HTTP::path]]
log local0. $path
switch -glob $path {
"/classkb/assets"{
}
"/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"
}
}
}
}
Caveat: I've not tested it, and might not be %100 correct syntax
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