Access blob storage files by specific domain. (Prevent hotlinking in Azure Blob Storage)

Hi,
My application deployed on azure, and I managed all my file to blob storage.
When i created container with public permission then it accessible for all anonymous users. When i hit URL of file (blob) from different browser, then i will get that file.
In Our application we have some important file and images that we don't want to expose. When we render HTML page then in <img> tag we define src="{blob file url}" when i mention this then public file are accessible, but same URL i copied
and hit to anther browser then still it is visible. My requirement is my application domain only able to access that public file in blob storage.
Amazon S3 which provide bucket policy where we define that for specific domain only file will accessible. see http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
Restricting Access to a Specific HTTP Referrer

hi Prasad,
Thanks for your post back.
All of SAS and CORS could work, but not comprehensive.
For your requirement, " My requirement is my application domain only able to access that public file in blob storage.", If you want to stop the other domain site access your blob, you may need set the CORS for your blob. When
the origin domain of the request is checked against the domains listed for the
AllowedOrigins element. If the origin domain is included in the list, or all domains are allowed with the wildcard character '*', then rules evaluation proceeds. If the origin domain is not included, then the request fails. So other domain didn't access
your resource. You also try the Gaurav's blog:
http://gauravmantri.com/2013/12/01/windows-azure-storage-and-cors-lets-have-some-fun/
If you access CROS resource, you also need use SAS authenticated.
However SAS means that you can grant a client limited permissions to your blobs, queues, or tables for a specified period of time and with a specified set of permissions, without having to share your account access keys. The SAS is a URI that encompasses
in its query parameters all of the information necessary for authenticated access to a storage resource (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
).  So if your SAS URI is available and not expired ,this URI could be used to other domain site. I think you can try to test it.
If I misunderstood, please let me know.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Force file download for IE9 on Azure Blob Storage

    Hello,
    I am trying to use Azure Blob Storage as a location for secure file downloads using Shared Access Signature. Everything is working very well, however the problem I am having is I am trying to allow the user to save files from the browser and I have all browsers
    except IE9 working.
    Reviewing this question,
    What content type to force download of text response?
    this works well when I can control all of the headers, however in Azure Blob Storage, I have set the Content-Type to application/octet-stream and this allows all browsers except IE to ask the user to save the file, IE simply opens the file. It appears that
    known file types will open (example .jpg, .wmv etc…).
    In Azure, I have found no way to set
    Content-Disposition: attachment;filename="My Text File.txt"
    Is there a way, using Azure Blob Storage, to use IE to download any file directly from Azure Blob Storage?
    Thanks in advance.

    Hi,
    Actually, we can't set Content-Disposition for blobs, and I can't think of any other workarounds. From my experience, in most case IE's behavior is fine. I would like to know why you have to prompt a download? The user can see the text file, and
    if they wish to save it locally, they have more than one way to do that (copy paste, save file, etc.). If they simply want to read the text and then forget it, that's also fine. They don't even have to download it and then double click a local file to read
    the content.
    If you have to modify the behavior, the only workaround I can think of is to use a web role as an intermediate bridge, and add the Content-Disposition from your web role.
    Best Regards,
    Ming Xu.
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact
    [email protected]
    Microsoft One Code Framework

  • Streaming files from Azure Blob Storage through Node.js server

    Hello,
    I am currently trying to implement download server with Node.js Express app in a way that website visitors would be able to download files via stream straight from Azure Blob storage - so the server won't need to download files to its local storage. Here's
    how I do that:
    outStream is the response object (res) received by Express router; blobSvc is initialized like this:
    blobSvc = azure.createBlobService(conf.azureStorageConfig.account, conf.azureStorageConfig.key, conf.azureStorageConfig.host);
    . There are several issues I face, for example - while small files get downloaded well, the bigger ones (even 40 MB) do not finish the download successfully, throwing an error in console:
    It has to be mentioned that the files are zip-archives, and while the error is thrown, the file is not completely downloaded to the client's machine - the archive is broken. 
    There are other issues, like the fact that the client can't download more than 1 file from the server simultaneously - he gets response timeout after trying to start downloading the second file.
    What is the right way to use streaming with azure storage library in Node for client downloads?
    Best Regards,
    Petr.
    Arction Ltd.

    Hi,
    Thank you for posting in here.
    We are checking on this and will get back at earliest.
    Regards,
    Manu Rekhar

  • When I access a windows files server with the mac I am adding .apple (hidden files). How can I prevent this.

    When I access a windows files server with the mac I am adding .apple (hidden files). How can I prevent this?

    Look for a program called BlueHarvest. I'm not sure if it still works with Mountain Lion.
    I believe your file server can be set up to handle the metadata files, but I suppose that would depend on the Server software and your IT staff.

  • How to Secure or mask the Video Streaming on Azure Blob Storage

    I have a problem on using my Azure Blob Storage, this is for streaming specifically MP4 files.
    I have a wordpress site and I use Azure Blob Storage for my Storage, I use CloudberryExplorer for my browsing and editting
    My problem is that, the wordpress site Video Option which is MediaElemtJs have an exposed Video Source (This mean they can use the video source for their own project)
    Is their a way to mask or hide the video source? or I can limit the video source that it should only be coming from my site

    hi Franz,
    Base on my experience, there has two approaches for this issue.
    1.Using the SAS in js request.
    Like this:
    <source src="https://MY-AZURE-STORAGE.blob.core.windows.net/asset-b1ebfc63-4e1f-4c76-b2dd-b040113aa493/MigratingWebSitesAndDatabasesToWindowsAzure_mid.mp4?sv=2012-02-12&st=2013-09-03T17%3A17%3A20Z&se=2015-09-03T17%3A17%3A20Z&sr=c&si=efc57c3c-a025-41cd-a8b1-908231c7aed2&sig=xyiIxmqNdF%2Bo1x7eq89xCUgXkenZLEEpq%2B%2Bo715dT0U%3D" type="video/mp4">
    Please see this blog:http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
    You could set the start time,expire time  and permission into your request. And you could use javascript to create the request and set src value. please see this sample (http://gauravmantri.com/2013/02/16/uploading-large-files-in-windows-azure-blob-storage-using-shared-access-signature-html-and-javascript/
    2.Create a web handler to handle the request url
    You could create a .ashx page and handle the url in .ashx page. Like this:
    <video src="videos.ashx?source=file.mp4" width="640" height="480" controls></video>
    Please try it.
    Also, you could see this threads
    http://stackoverflow.com/questions/9756837/prevent-html5-video-from-being-downloaded-right-click-saved form some ideas.
    Regards,
    Will 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't access some shared files

    I have a computer here where the user can't access some shared files.  From the machine she normally uses, the folders are greyed out.  I've checked all the permissions, and everything is in order.  She was even able to access the folder from a different Mac.  The mac is fully patched, running OS 10.6.8.

    More Info:
    After trying multiple things, I have more info to solve the problem. 2 other computers (one is another iBook and the other is a PC) in the house, access the hard drive as advertised with no problems. The only thing that has changed on my computer recently is the replacement of a 1G iPhone with an iPhone 3Gs. This phone did some weird things when syncing, specifically with our photo programs. It locked up Nikon transfer and iPhoto was working strangely. I felt the best way to alleviate those 2 problems was to shut down my computer, and restart. This is when I encountered the problem with accessing the TC. Things are also a little bit more complicated because I use the TC as the storage medium for both iTunes Library and iPhoto Library, both of which I can't access given the current problem.

  • Can't access Time Machine files since upgrading to Mavericks

    I have searched the community and found that people have experienced issues backing up to Time Machine since upgrading to Mavericks, but my problem appears slightly different from the ones I've found.  I can see that my Time Machine is actually backing up since the upgrade as it was before the upgrade.  The issue I'm having is that I can't access the backed-up files in any way. 
    When I try to open time machine it launches the "space view" with all of the historical tabs lined up for me to scroll through, but imediately closes that window and gives the error message: "Can't connect to a current Time Machine backup disc".  It's so weird, because it says that there have been backups completed since the upgrade (most recently this morning).  If it wasn't writing to the disc, it would have showed me an error of some sort.
    What I am, specifically, trying to accomplish is that I need to restore some iTunes playlists that I somehow managed to delete this past weekend.  I figured that I would easily be able to access the library file that contains the playlists from Saturday morning, when I KNOW that playlist was still there, and just restore it.  Now that I am seeing that I can't access any of my time machine files, I'm realizing that I have an even bigger problem, and that all of my files are, essentially, going without backup at this time (assuming I can't access the files that have already been backing up).
    If anyone has some insight as to how I can fix this problem, I would greatly appreciate it.

    Hi John, (The above was for your attention) I'm 72 and must've hit the wrong button!!!
    I followed your instructions to the letter, but sadly, no success...all my backups are showing on the TM external HD, but I cannot access them after instsalling 'Mavericks'
    I spent the entire day on and off the phone with Applecare (they are very nice, and I'm sure they know most of the stuff needed; but not this problem. They are phoning back tomorrow as the senior chap was not available.
    I love my apple products, and like you, have been using their gear for well over 25 years...not studying the things, but using them all the way through.
    My present Mac,  a 24" iMac is nearly 7 years old, bought on December 11th 2007, and this is the first time I have had a significant problem, and never a virus..got bless em!. I bet there are not many Windows users around who can say the same!
    However, if I cannot access my backups, I'm a bit lost, as all my accumulated stuff is there!
    I guess the worst case scenario is that I revert to OS X 10.7.5, and wait 'til the bugs are ironed out in Mavericks....Ho Hum
    Message was edited by: briinoz

  • Access DB (& .ldb file) does not close after crystal reports

    Post Author: mgold
    CA Forum: Crystal Reports
    Access DB (& .ldb file) does not close after crystal reports
    Hi! We have a VB application using Crystal Reports 6 that has worked successfully on hundreds of systems for over 10 years. Now, on one network, the application and access database does not close. It seems to hang on the &#91;.Close&#93; command.
    When we open the application an peruse the screens without opening up a report (using crystal reports), the application and access db closes fine. But as soon as we run a report and then close the report and try to close the application, the access db does not close. Many of the screens open the db and grab data from the access db, but it's only after running crystal reports that we have this problem. (Please see more information below.)
    Setup: Application and data (access 97 db) reside on a server in the same folder, but application shortcut is kicked off on client PC. Kicking off the shortcut on the client PC means that the image/process runs on the client PC (not on the server). In this problem case, the application shortcut is on a Windows XP Pro Version 2002 SP2 PC with the app & data on a Windows 2003 server. Users are local Admins on their PCs with "Full Control"over the directory and files on the server where the data (access 97 db) resides. This type of setup is typical and has worked without any problems for clients.
    The application is written in Visual Basic, using Crystal Reports 6 (using DAO). We close the recordset, set it to zero and then it hangs on closing the db (.Close command).
    A few key pieces of information:
    - The application closes fine if the app & data (access 97 db) are on a local PC. This includes closing fine if the application is run directly on the Windows 2003 server where the data is stored.
    - It worked on this client's network until sometime in the last few weeks.
    - One thing that changed is that the company is using VMWare on its servers. Not sure if they started using VMWare at the same time as it started failing. This may be unrelated. Possibly other things changed, but can't get any more information ... yet.
    - It works fine running the application from a Windows Vista PC with a user who is a domain admin.
    - The access db and application hang for about 10-20 minutes and then eventually closes. It appears that somehow
    Crystal Reports is keeping the db open, but I'm not sure why.The application doesn't quit and the database doesn't close even if I try to end the task with the Task Manager.
    - The Crystl32.ocx version being used is 8.0.0.4 (if that matters).
    - I copied 6 month old program files and database files to a test folder on the Windows 2003 server. It fails using these files that worked fine 6 months ago.
    Any ideas or help would be greatly appreciated! If you know of another good place to post this, please let me know.
    Thanks!
    - Mark

    Crystal doesn't support tables in HTML interpretation. 
    You can probably work your way around this by doing Replace() calls on the relevant tags.
    See:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033383334%7D.do
    The supported HTML tags are:
    " html
    " body
    " div (causes a paragraph break)
    " tr (causes only a paragraph break; does not
    preserve column structure of a table)
    " span
    " font
    " p (causes a paragraph break)
    " br (causes a paragraph break)
    " h1 (causes a paragraph break, makes the font bold
    & twice default size)
    " h2 (causes a paragraph break, makes the font bold
    & 1.5 times default size)
    " h3 (causes a paragraph break, makes the font bold
    & 9/8 default size)
    " h4 (causes a paragraph break, makes the font bold)
    " h5 (causes a paragraph break, makes the font bold
    & 5/6 default size)
    " h6 (causes a paragraph break, makes the font bold
    & 5/8 default size)
    " center
    " big (increases font size by 2 points)
    " small (decreases font size by 2 points if it's 8
    points or larger)
    " b
    " i
    " s
    " strike
    " u
    The supported HTML attributes are:
    " align
    " face
    " size
    " color
    " style
    " font-family
    " font-size
    " font-style
    " font-weight

  • How can I access a response file on the same computer but with different login?

    When trying to access a response file on the same computer that was used to set it up, but with a different login, I get an error message that the network resource was not found. How can I retrieve the responses on the same computer but under a different login/username?

    The response file is associated with a specific login (as determined under Edit > Preferences > Identity) so you cannot retrieve it if you're using a different login.

  • How do I access my iCloud content? Specifically movies purchased in itunes.

    How do I access my iCloud content? Specifically movies purchased in itunes. I have multiple Apple devices, one itunes account, one cloud...purchased upgraded storage. The iCloud page on Apple website states that movies purchased in itumes are automatically transferred to the cloud. I can't find the movies unless I sync my devices via a cord. I am interested in purchasing Apple TV but want to make sure I will be able to access movies purchased.

    Movies are not stored in icloud.  They are on the cloud - yes, but what Apple means,  is that you can redownload the movies via the iTunes Store, where all movies are stored (the itunes cloud).

  • How can i access filename from file (sender)

    hi All,
    can anybody tell me
    how can i access filename from file (sender)?
    thank u
    swari

    See:
    "SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean"
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    "Accessing Adapter-Specific Attributes through User Defined Function"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

  • Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. W

    Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. What shall I do?

    Alauda_positos I would recommend reviewing your installation log files to determine the exact directory which the installer is unable to access.  You can find details on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors discovered to this discussion.
    For information on how to adjust file permissions please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.

  • Accessing a jar file

    Hi all
    Is it possible to access a txt file that is in a jar file???
    That is , I've created a jar file that contains a txt file, now in my script, I need to access this txt file, is this possible?
    Thanks , Dave

    Yes.
    See http://java.sun.com/docs/books/tutorial/jar/index.html for the specific details and sample code.

  • How can I deny write access to datalog files for all but one process in LV8?

    In LabVIEW 7.1, wiring the deny mode terminal of Open File.vi with a Deny Write Only enum constant was an effective means for ensuring that only one process could write to a datalog file at a time.  In LabVIEW 8.0, Open File.vi is no longer available and the new Open/Create/Replace Datalog vi does not provide a deny mode terminal.  Also, the new Deny Access vi does not support datalog files.  Furthermore, the Set Permissions vi is an unsatisfactory solution because under the Windows operating system, it simply sets the Read Only file attribute.  This is inadequate because I have demonstrated that it is still possible for two processes to open a datalog file with read/write access before either one has had a chance to set the Read Only file attribute in order to lock out the file.  If a process sets the Read Only file attribute first, then it can't open the file with read/write access for itself.
    Does anyone understand the file mechanism by which deny mode used to work with the old Open File.vi?  I wish to restore the functionality I had in LV 7.1 in my LV 8 programs.
    Thanks!
    Larry

    Larry Stanos wrote:
    I appreciate the
    empathy from Rolf, but I'm hoping that someone may have written one or
    more vi's containing CINs that call Windows 2000/XP file access control
    library routines.  At least I'm assuming that is how the deny mode
    input to Open File.vi used to work in LV7.1.  The Microsoft
    Developers Network on-line documentation on Access Control http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/access_control.as... is
    daunting to put it mildly.  But even if a set of CINs has not
    already been coded, perhaps someone could point me to the specific set
    of calls I need to make to absolutely guarantee that no two
    clients can simultaneously open the same file with write privileges.   Unfortunately
    the elimination of deny mode functionality for datalog files in
    LV8 has sabotaged my commitment to a March 1 release date because it
    would also be impractical to convert everything back to LV7.1 at
    this point.   Sincere thanks to anyone who can help me out here!
    Unfortunately
    the functionality you mention does not work in the way the deny mode in
    the LabVIEW nodes works. Basically that deny mode is converted to an
    according FILE_SHARE_READ/FILE_SHARE_WRITE value and passed to the
    Win32 API CreateFile function. This is more or less the only place
    where you can define a global share (or deny) access to a file. That is
    also why the Deny Access node online help is talking about that the
    file is reopened.
    But I just retried what you had tried to do, and low and behold it
    works with wiring a datalog refnum to Deny Access. What is important
    here however is that you do need to wire a datatype to the record type
    input of the Open/Create/Replace Datalog node. Otherwise you can't
    connect the resulting datalog refnum to any other file function, since
    it is an incomplete datatype.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Accessing Excel 2007-file from BO Explorer App

    Hello all,
    I have a problem when trying to access excel 2007-files in an InfoSpace ( XI 3.1 SP2) from the iPad with the BO Explorer App.
    Accessing this file from the Browser is no problem and accessing the same file saved as excel 2003 is also no problem from the IPad.
    Anybody an idea what could be the problem? I have to save some files with excel 2007 because number of rows.
    Thanks in advance!
    Regards,
    Christian
    Additional hint: Always the following error message appears:
    It is not possible to retrieve the facets within the Explore tab.
    org.xml.sax.SAXParseException:Character reference "&#26" is an invalid XML character.
    Any idea? Thanks!
    Edited by: Christian Hurth on Sep 9, 2011 2:35 PM

    I do now see that you are correct: there is a difference between Excel 2007 and Excel 2010. Your particular usage is somewhat unusual and there probably isn't anything you can do, except to recognise that you are a beneficiary
    of it (although others may be less fortunate).
    The type of protection that you are applying protects the workbook against certain types of change; it does not prevent people opening it, and they do not need a password to open it, so, in a sense, it does not need to be
    encrypted. In Excel 2007 (and Excel 2003 before it), the workbook was, nonetheless, encrypted, and in Excel 2010 it isn't.
    This change means that someone can remove the protection outside Excel (just by deleting that single line of XML), something that couldn't be done before so it is a loss of security.
    I'm a Word person, rather than Excel, and I don't know all the details of the different types of 'protection' that can be applied to Workbooks and Sheets.
    I have, however, not seen anything about this before and will ask some Excel friends if they know anything. Beyond that I don't think I can help any more.
    Enjoy,
    Tony
    www.WordArticles.com

Maybe you are looking for