Zero Trust HELP


Can I create a scenario like this with Zero Trust?

I have an extension called and I want this extension to be successful only when a request is sent via If a request is sent directly without entering, I want to block those requests.

Thank you