Tony_T__153394
Jun 08, 2017Nimbostratus
Only 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/ExternalEndpoint/*" to be allow to pass through to the pool. Everything else should be dropped. Is this possible?
This is what I currently have in my iRule:
when HTTP_REQUEST {
if { not [string tolower [HTTP::uri]] starts_with "/soa-infra/resources/ExternalEndpoint/*" } {
reject
}
}