How to authorize download?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default How to authorize download?

    I am planning a website which reqires this feature: it allows registered
    users to upload and/or download files (like *.doc, *.ppt etc.) but not
    everyone can download every files. some files are restricted to certain users
    only. that means only certain users can download certain files. but if the
    URL of a certain file that needed to be protected is exposed, the
    authorization will be in vain. any solutions?
    lenyado Guest

  2. Similar Questions and Discussions

    1. De-authorize Contribute 3.0. How?
      I've been told I need to deauthorize this app before installing it on the replacement machine. However, I can't find a 'deauthorize' function in the...
    2. Cant Authorize Device: Could not create EDB
      this is all i keep getting when I go to: File...Digital Editions...Authorize Devices. on adobe reader 7.0.8 Mac OS X10.3.9 500 MHZ G3 Ibook ...
    3. Any one using Authorize.net?
      I'm trying to post an AIM transaction to Authorize.net. I get this error: The following errors have occurred. (92) The gateway no longer supports...
    4. Authorize HTTPHeader
      Hi all, I’m trying to read a values out of the ‘authorization’ host header. I can get the values easily enough, but the ‘authorization’...
    5. PHP & Authorize.net w/o cURL?
      Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company...
  3. #2

    Default Re: How to authorize download?

    You could write an HttpHandler or an HttpModule to handle the security.
    Basically your HttpHandler or HttpModule would need to perform the security
    check and give an Access Denied message if the user does not have access, or
    if the user does have access, set the content type and write the file to the
    Response stream.

    Also, note that you will have to set up IIS so that the ASP.Net application
    handles .doc, .ppt, and whatever other files you want to provide security
    for.

    --
    Ben Lucas
    Lead Developer
    Solien Technology, Inc.
    [url]www.solien.com[/url]

    "lenyado" <lenyado@discussions.microsoft.com> wrote in message
    news:04C224EB-729A-41DC-819F-598FCC47C5B0@microsoft.com...
    >I am planning a website which reqires this feature: it allows registered
    > users to upload and/or download files (like *.doc, *.ppt etc.) but not
    > everyone can download every files. some files are restricted to certain
    > users
    > only. that means only certain users can download certain files. but if the
    > URL of a certain file that needed to be protected is exposed, the
    > authorization will be in vain. any solutions?

    Ben Lucas Guest

  4. #3

    Default How to authorize download?

    Write the files based on a querystringvariable as binary to the response
    stream (if the user is authenticated, otherwise send him some greetings with
    a errormessage) - so you don't have to reconfigure IIS and nobody has knows
    the path to the files.

    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]


    "Ben Lucas" <ben@nospam.solien.nospam.com> wrote in message
    news:x8CdnTqkJLUXtE3cRVn-qw@comcast.com...
    > You could write an HttpHandler or an HttpModule to handle the security.
    > Basically your HttpHandler or HttpModule would need to perform the
    > security check and give an Access Denied message if the user does not have
    > access, or if the user does have access, set the content type and write
    > the file to the Response stream.
    >
    > Also, note that you will have to set up IIS so that the ASP.Net
    > application handles .doc, .ppt, and whatever other files you want to
    > provide security for.
    >
    > --
    > Ben Lucas
    > Lead Developer
    > Solien Technology, Inc.
    > [url]www.solien.com[/url]
    >
    > "lenyado" <lenyado@discussions.microsoft.com> wrote in message
    > news:04C224EB-729A-41DC-819F-598FCC47C5B0@microsoft.com...
    >>I am planning a website which reqires this feature: it allows registered
    >> users to upload and/or download files (like *.doc, *.ppt etc.) but not
    >> everyone can download every files. some files are restricted to certain
    >> users
    >> only. that means only certain users can download certain files. but if
    >> the
    >> URL of a certain file that needed to be protected is exposed, the
    >> authorization will be in vain. any solutions?
    >
    >

    Daniel Fisher\(lennybacon\) Guest

  5. #4

    Default Re: How to authorize download?

    Try looking at these 2 artickes at:-
    [url]http://dotnetjunkies.com/WebLog/richard.dudley/archive/2004/05/21/14215[/url].
    aspx

    and

    [url]http://www.microsoft.com/india/msdn/articles/57.aspx[/url]

    Hope it helps..
    Patrick



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Patrick Olurotimi Ige Guest

  6. #5

    Default RE: How to authorize download?

    Thanks, that's quite helpful. i will try that out later.
    Lenyado Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139