Forum Discussion
Pankaj_70057
Jan 26, 2012Nimbostratus
To 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
Jan 31, 2012Employee
do 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
}
}
}
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