Ingress URL filtering

Hi there! How could I manage access to specific URL in my ingress controller?
I’m publishing a service via nginx ingress controller, but would like some specific URL to be available for certain networks only. I found white-listing directive, but it applies to the whole service. Is there a way to achieve this at all or this is supposed to be done on a gateway before k8s cluster?

Cluster information:

Kubernetes version: 1.22
Cloud being used: Azure
Installation method: Managed

I found my answer: it is possible via calico network policy for istio enabled apps.
If you have the same question - here is the doc:

apiVersion: projectcalico.org/v3
kind: GlobalNetworkPolicy
metadata:
  name: customer
spec:
  selector: app == 'tradingapp'
  ingress:
   - action: Allow
     http:
       methods: ["GET"]
       paths:
         - exact: "/projects/calico"
         - prefix: "/users"
  egress:
    - action: Allow