Forum Discussion
John_Cassidy_13
Nimbostratus
Feb 21, 2014IP and HTTP Events iRule
We have a new web app that we want to lock down to not only source IP address but also the web URI. Each customer has a different interface on the web app so we want to send requests to a different p...
Matt_Breedlove_
Nimbostratus
May 19, 2014I did this awhile ago. Here is the best way to do this Your prefix URI's below are /xl and /ce. The source IP list that secure each customers prefix URI's go into the acl datagroup objects as address type
when HTTP_REQUEST {
switch -glob [URI::decode [string tolower [HTTP::uri]]] {
/xl* { if { ([class match [IP::remote_addr] equals $::xl_acl]) } { return } }
/ce* { if { ([class match [IP::remote_addr] equals $::ce_acl]) } { return } }
default {
discard
}
}
}
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