Forum Discussion
Simple Traffic Restriction
Hi, how are you? I need a help to create an Irule with follow condition:
What the command to allow access in that URIs ?
Allow access to 03 specifics URI requests:
And deny access to any other URI:
Ex:
when HTTP_REQUEST {
if {([HTTP::method] equals "GET") and ([HTTP::uri] equals "/URI1")} { ?? }
elseif {([HTTP::method] equals "GET") and ([HTTP::uri] equals "/URI2")} { ?? }
elseif {([HTTP::method] equals "GET") and ([HTTP::uri] equals "/URI3")} { ?? }
else {([HTTP::method] equals "GET")}{ drop }
}
- nathe
Cirrocumulus
You can use a datagroup to list allowed URIs and then an irule to drop the rest. See the following DC post for irule.
https://devcentral.f5.com/questions/irule-to-allow-only-certain-uris
Hope this helps.
N
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