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 4532882
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:05:08+00:00 2026-05-21T14:05:08+00:00

I use ASP.NET. I have several audio files on the server and I should

  • 0

I use ASP.NET.

I have several audio files on the server and I should give user a temporary link for downloading. It meens that after several hours link should be unavailable
For example I give user: http://www.mysite.com/files/111.mp3, but how to protect http://www.mysite.com/files/ from direct access and downloading by any user?Is the UrlRewriting what I need?

How can I make a temporary web-page/link for downloading and protecting files from direct access from adress line?

Maybe I should store files in database(I have SQL Server 2008)?Can it help?

  • 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-05-21T14:05:09+00:00Added an answer on May 21, 2026 at 2:05 pm

    I think you will need a way to manage the temp links (say a DB with time stamps) and when you get a request by one of these links, you gonna use HttpHandlers to intercept this request, fetch your database by the requested link.

    if the given period of time still current, you will get the actual file from the server and let the Httphandler send it back to the user as a stream.

    this way, the end user will still get the requested file, but he will see that he is getting the file from your temp link
    (say: http://mysite.com/files/kdhsdg52354d) and will not be able to reuse it again after the your defined period.

    sorry, I’m in a rush so couldn’t format the answer better :).

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

Sidebar

Related Questions

I use asp.net + MVC1.0 and in a web-page I have several forms, within
We have several projects (ASP.NET MVC) that will require a Role / User /
We have several ASP.NET applications that use a sitemap which is populated via a
I use ASP.NET and have a label control on my page, which I fill
I use ASP.NET and have a Button and a CustomValidator, which has to validate
I have tried to use ASP.NET MVC for a while, then I face a
I have set up my website to use ASP.NET Membership. it all works fine
I'm trying to use ASP.net profiles I've followed some instructions which means I have
I work on a web game , I use asp.net mvc, linqtosql. I have
how can i use request.querystring in asp.net.i have a linkbutton and this is in

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.