Hi @Yasemin Aykalkan (Zer A.Ş.)
Is there any way to achieve this on the default blob domain, or is it simply not possible due to how Azure handles blob requests at the platform level?
No, it’s not possible to intercept or redirect unauthenticated requests made directly to the default Azure Blob domain (*.blob.core.windows.net
) before Azure returns an error. This behavior is by design and enforced at the Azure Storage platform level.
Why Redirection Isn’t Possible on blob.core.windows.net?
Azure Storage endpoints (https://<account>.blob.core.windows.net/..
.) are managed entirely by the Azure platform. Requests hitting these endpoints go directly to the Azure Blob service — there's no opportunity to hook into the pipeline or inject custom behavior like redirection or request inspection before authorization occurs.
To intercept and reroute requests, you'll need to host the blob content behind a custom domain using one of:
- Azure Front Door or
- Azure CDN (Standard/Premium from Microsoft)
Then configure the origin to point to your Blob Storage and attach a custom domain.
This MS-Document, is very relevant if you're trying to access blob data programmatically using OAuth 2.0 token-based authentication via Microsoft Entra ID.
Note: This works only for applications, not for end users in a browser.
Hope the above suggestion helps! Please let us know do you have any further queries.
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.