Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8331657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:28:49+00:00 2026-06-09T02:28:49+00:00

I have a software installer published as an Azure blob and I need to

  • 0

I have a software installer published as an Azure blob and I need to count how many times it has been downloaded.

The problem is that it can be referenced externally (from many download sites), therefore I cannot control it via website.

So… does Windows Azure have a mechanism to detect blob downloads or registers the count of them?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:28:50+00:00Added an answer on June 9, 2026 at 2:28 am

    Did you ever consider to make your container private? This would prevent people from downloading blobs directly. By doing this you are in full control of who can download the files and for how long they can do this.

    Let’s assume only registered users can download the file and you’re using ASP.NET MVC. Then you could have an action similar to this one:

        [Authorize]
        public ActionResult Download(string blobName)
        {
            CountDownload(blobName);
    
            var blobClient = storageAccount.CreateCloudBlobClient();
            var container = blobClient.GetContainerReference(containerName);
            var blob = container.GetBlobReference(blobname);
    
            var sas = blob.GetSharedAccessSignature
            (
              new SharedAccessPolicy
              {
                  Permissions = SharedAccessPermissions.Read,
                  SharedAccessStartTime = DateTime.Now.ToUniversalTime(),
                  SharedAccessExpiryTime = DateTime.Now.ToUniversalTime().AddHours(1)
              }
            );
    
            return Content(blob.Uri.AbsoluteUri + sas);
        }
    

    What this does is the following:

    • The Authorize attribute makes sure only users that are logged in can access this action.
    • You increase the download count for that blob
    • You get a reference of the blob based on the name
    • You generate a signature that allows downloading the blob for 1 hour
    • You return the url of the blob with the signature (you could also have it redirect to the blob url)

    By handing out the URL with signature through your application you have full control and you can even look at other scenarios like CAPTCHA, paying downloads, advanced permissions in your application, …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have this software that has a webservices component. Now, the administrator of this
I have a NSIS installer that at a point has to check if java
We have a software that has couple of executables inside. One of the executables
I have an installer that writes to HKLM\Software\DroidExplorer\InstallPath . On any x86 machine it
I have a windows installer project which installs some software (winform, service, mce addin).
I have a table that describes which software versions were installed on a machine
I have a bash script that installs some software. I want to fail as
We have software that runs fine under a normal Windows installation but when we
I have a software that is tracking an NTFS volume changes on a Windows
We have accounting software populating the name field on a magento webstore, the problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.