Forum Discussion
Blogger11_11505
Nimbostratus
Aug 22, 2013How to Block all traffic that doesn't start with certain string question
Hello,
I'm trying to block all traffic that doesn't start with a certain string. I've wrote the iRule below but it's not working. Does anyone have any hints or tips? My iRule is probably more compl...
Blogger11_11505
Nimbostratus
Aug 22, 2013 Code when HTTP_REQUEST {
if { [HTTP::path ] starts_with "/CHD"} {
pool pool_soa_wservicetst_80
}
elseif {not [HTTP::path ] starts_with "/CHD"}{
HTTP::respond 403 content {Blocked!}
}
}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
