Forum Discussion
Greg_Donohoe_25
Nimbostratus
Jul 11, 2014URI restriction using data group list
Hi, I am looking for advice on the correct syntax to create an irule which allows the following: Internal access permitted to all server URI's with no restrictions on access but externally ONLY http:...
Kevin_Stewart
Employee
Jul 11, 2014when HTTP_REQUEST {
if { [class match [IP::client_addr] equals my_internal_ips] } {
return
} else {
if { [string tolwer [HTTP::uri]] equals "/xyz-ws" } {
return
} else {
drop
}
}
}
This says, for all internal clients, return and allow. For external clients, if the URI is /xyz-ws, return and allow, else drop.
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