Click here to Skip to main content
12,759,704 members (32,315 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET Webmatrix
Hi! I have a folder containing many zip files. I wana restrict access to each file to a specific user (each file is for a specific user) in a way that other users cant access it even by having it's direct URL. How can I do this in webamtrix? Does the type of file have anything to do with the solution?
Posted 8-Jan-13 23:49pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you use windows authentication and impersonation, you can set file system level ACL's. But that's not a good idea.
You should make your own "file server" on base. The concept is here: File Download in ASP.NET and Tracking the Status of Success/Failure of Download[^]. You can extend it to check user access stored in a database for example, and of course to give access not only to a specified file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100