Howto ? authorization to download files on an ASP .NET website

S

Sagaert Johan

Hi

How can i only allow downloading a file if a user has logged in ?

I have an aspx page with links to downloadable files, a users needs to enter
a login/pw before he can see the page, but if he bookmarks the url's to the
download link, he can bypass the login page.

So my login / pw protects access to the page with downloads links but not to
the downloads itself..

How can i do this in ASP (2) NET ?


(I have seen some sites where an url to a download looked like some kind of
mangled name.)

(ps if commenting keep in mind i am only a beginner in ASP )


Johan
 
T

Teemu Keiski

Hi,

you need to map file extensions of known files to be protected in IIS to be
served by aspnet_isapi.dll, That happens in IIS's management tools. IIS
means the administrative tool of Internet Information Services, the web
server on Windows platform.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top