Limit access to flexible images via worker?

I want to only allow access to my images stored on cf images through my worker, but the issue is I want to use flexible variants to access them.

My issue is that the only solution I can see to this is using signed delivery URLs, which disables flexible variants. Is it possible to block access to my imagedelivery.net url and customdomain.com/cdn-cgi/imagedelivery/ and only allow access via a worker?
Was this page helpful?