Forum Discussion
Pankaj_70057
Nimbostratus
Jan 26, 2012To block some specific traffic from F5 for specific virtual directory
Here is the our requirement so if possible can you send me actual iRule to fulfill this requirement. Site: https://www.xyz.com/bac Allowed below host: 174.26.53.0/24 172.56.36.2 175.63.54.0/24 Block: ...
nitass
Employee
Jan 31, 2012do you mean if you have 4 more paths like /bac to filter?
if so, you can add them in switch case.
e.g.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/bac*" {
do something
}
"/111111*" {
do something
}
"/222222*" {
do something
}
"/333333*" {
do something
}
"/444444*" {
do something
}
}
}
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
