Forum Discussion
Dave_22402
Nimbostratus
Mar 16, 2010irule based on ip and url
I am trying to construct an Irule that first checks for a url and then allows access based on IP.
Example -
if the url is "/foo/*" and IP = 123.123.123.123
then g...
Dave_22402
Nimbostratus
Mar 16, 2010when HTTP_REQUEST {
switch [HTTP::host] {
"123.123.123.123" {
switch -glob [string tolower [HTTP::uri]] {
"/foo/*" { pool good_pool}
"*" { pool other_good_pool}
}
}
"*" {
switch -glob [string tolower [HTTP::uri]] {
"/foo/*" { pool bad_pool}
"*" { pool other_good_pool}
}
}
}
}
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