Forum Discussion
izac_189977
Nimbostratus
Mar 11, 2015iRule catches /
Hi all,
I'm trying to achieve the following
If a client requests a uri that is listed in the data group denied_uris
and the client ip is not from data group trusted_net
send a 403
Here is my...
izac_189977
Nimbostratus
Mar 11, 2015Ok now it's getting strange. I rebooted the ltm and after the the reboot it doesn't work anymore
iRule
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] starts_with url_test] } {
if { not ([class match [IP::client_addr] equals private_net])}{
Block request
HTTP::respond 403 content "URL Blocked"
return
}
}
}
data group url_test
ltm data-group internal url_test {
records {
/geo/web\* { }
/manager { }
}
type string
}
Both url's are accessible from external, it worked before the reboot
Thanks Chris
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