Forum Discussion
wojo_99069
Feb 07, 2011Nimbostratus
Access control for specific url
All,
I am trying to limit access to a certain url for our company using a iRule, basically all access to api.example.com will need to be open but access to api.example.com/tools will n...
hooleylist
Feb 07, 2011Cirrostratus
Also, it looks like I missed a logic problem. Can you try this? It assumes you want all requests to go to the virtual server's default pool, except those to /tools that don't come from an internal IP address range.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/tools" }{
if { not [matchclass [IP::remote_addr] equals private_net] } {
reject
}
}
}
Aaron
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