Forum Discussion
iRule - Restricting IP addresses for a portion of URI
- Nov 01, 2017
So basically you need to allow access to all uri containing "devcentral" word, from specific IPs only, unless "/devcentral/site/test", in which case, access should be allowed to all IPs.
I think there are few ways. One possibility is:
A :: the uri contains "devcentral"
if [(A && B) && C] {
So basically you need to allow access to all uri containing "devcentral" word, from specific IPs only, unless "/devcentral/site/test", in which case, access should be allowed to all IPs.
I think there are few ways. One possibility is:
A :: the uri contains "devcentral"
B :: the uri is different from "/devcentral/site/test"
C :: the client IP does not match the IP list
if [(A && B) && C] {
403 deny access
}
Recent Discussions
Related Content
* 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