Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing cross linking to images on Azure blob storage

I see nothing documented on this, so does anyone know if it is possible to restrict the domains that can access a resource placed in blob storage? When you make a container your only choices are public or private.

like image 385
Tobin Rysenga Avatar asked Jan 25 '26 19:01

Tobin Rysenga


1 Answers

That's right. Currently there is no way to restrict access based on domains or IP. Your only solution to manage security on blob storage is by working with Shared Access Signatures (SAS).

The signature would be generated server side and should be appended to the blob's URL. The signature can be limited in time (making the signature only valid for 5min for example).

enter image description here

And this could be done in a web application to display images or videos for example. Even if someone 'steals' your content, the url would be invalid after a few minutes. Not exactly the same as limiting based on IP or domain, but still very effective.

like image 105
Sandrino Di Mattia Avatar answered Jan 27 '26 11:01

Sandrino Di Mattia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!