Forum Discussion
bbensten_8485
Nimbostratus
Feb 26, 2014Irule to inspect URI and then validate client is in allowed ip range?
Hello,
We are tying to write a simple Irule that will inspect uri to match a string and if that specific string matches, check that the client is coming from an allowed IP address range. We hav...
bbensten_8485
Nimbostratus
Feb 26, 2014This solved it.
when HTTP_REQUEST {
if {([HTTP::uri] contains "/OpenAM/UI/Login?module=DataStore")}{
if { ! [IP::addr [IP::client_addr] equals 173.79.131.23/24] } { log local0. "Blocking [IP::client_addr]" reject }} }
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