¿Is it possible to restrict access to an Azure blob container to a specific domain?

David 0 Reputation points
2024-01-11T20:33:48.5733333+00:00

I need to restrict read access to an Azure blob container so that it is only accessible from a specific domain.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 6,041 Reputation points Microsoft Employee Volunteer Moderator
    2024-01-11T23:57:33.2866667+00:00

    Hi @David , I understand that you need to make sure that users access Azure Blob Container using a custom domain (eg. www.mycustomdomain.com).

    Azure Storage supports custom domain names, but doesn't support HTTPS when using a custom domain. Front Door is the best approach to use a custom domain name with a storage account.

    If your Azure Blob Container allows anonymous access, please use Azure Front Door Premium with Private Link: Azure Front Door Premium (configured with Private Link) -> Private Endpoint of Azure Blob Container (anonymous access enabled, public access disabled)

    Otherwise, you could use a shared access signature to secure requests to the storage account, and either have the client include the signature on all of their requests, or use the Front Door rules engine to attach it from Front Door. However, this configuration does not prevent users from accessing Azure Blob Container using public endpoint (storageaccountname.blob.storage.azure.net).

    Azure Front Door Standard -> Azure Blob Container (public access enabled)

    More information: Use Azure Front Door with Azure Storage blobs.

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.