Forum Discussion
avnishvyas_1974
Nimbostratus
Apr 17, 2015Custom i-Rule needs further modifcation
Hello Experts
This is the scenario of what it is I am trying to achieve. We have URL contains a URI. We want to restrict some of the traffic by discarding requests if they do no match the criter...
- Apr 17, 2015
How about this iRule
when HTTP_REQUEST { if { [HTTP::uri] contains "/services/playIQService/" } { pool Pool_CCC_Posterscope } else { log local0. "[HTTP::uri] starts-with "/services/playIQService AND access URI = /restricted-URI/" discard } }
kunjan_118660
Cumulonimbus
Apr 17, 2015How about this iRule
when HTTP_REQUEST {
if { [HTTP::uri] contains "/services/playIQService/" } {
pool Pool_CCC_Posterscope
} else {
log local0. "[HTTP::uri] starts-with "/services/playIQService AND access URI = /restricted-URI/"
discard
}
}
- avnishvyas_1974Apr 17, 2015
Nimbostratus
Hi Kunjan Thanks for the input and efforts. I have applied this customer iRule to my VIP and now im getting the desired affect. Cheers AV
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