Forum Discussion
Tony_T__153394
Nimbostratus
Jun 08, 2017Only allow specific URI through F5 for virtual server
I'm having trouble creating a rule that only allows a connection if the URI starts with a specific string. This is on 11.x code LTM. I only want anything starting with "soa-infra/resources/Extern...
Samir_Jha_52506
Noctilucent
Jun 08, 2017Try below irule
when HTTP_REQUEST {
set uri [string tolower [HTTP::path]]
switch -glob $uri {
"/soa-infra/resources/externalendpoint/*" {
HTTP::uri "/uri"
}
default { 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