Forum Discussion
avnishvyas_1974
Apr 17, 2015Nimbostratus
Custom 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
Nimbostratus
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
}
}
avnishvyas_1974
Apr 17, 2015Nimbostratus
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
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