Lock Folder with ASP.NET

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

  1. #1

    Default Lock Folder with ASP.NET

    Hi all!

    Is it possible to lock a folder and its files with ASP.NET
    (-> VB.NET Code)?

    for example:
    if a user now trys to reach a specific file in a folder
    (for example: [url]www.myserver.com/somefolder/somefile.exe[/url]) he
    should not be allowed to download it.
    i already blocked the user from directory browsing but he
    still can download the file if he knows the whole url.
    so, is it possible to block users (for example with
    ASP.NET) to download a certain file?

    THX

    Chris
    Chris Guest

  2. Similar Questions and Discussions

    1. Can I allow access to one file within a folder, but notthe whole folder
      I want to allow access for users to edit only specific file within a folder. Can I do this Also, since I am just starting to use this on a new...
    2. Intercept the auto-refresh of a folder in HTML folder template
      Can anyone please send me the code to intercept the auto-refresh of a web page or folder (controlled by HTML folder template), or tell me where can...
    3. Remove from $name (folder)/(folder)/[x]/ <-- if exists to just get [x].
      Guys and girls, I'll be quite honest. I don't have the faintest idea how to do this, while I can do other php without a problem. Once I know how to...
    4. NO Lock
      When I go in a secure site I can not see the lock in the task bar not sure when this stopped. The computer does tell me im going to a secure site...
    5. Mapping networked shared folder to local folder
      Hello. I am setting-up a "cad server" (basically a shared folder located, \\cad\eoi\) for my draftspeople. The problem lies within the cad...
  3. #2

    Default Re: Lock Folder with ASP.NET

    NTFS permissions will do this, if you are using Windows Authentication. You
    can also manipulate your web.config in the specified folder if you are using
    forms authentication to control access.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows XP
    Windows XP Associate Expert
    --
    "Chris" <christian.binder@direkt.at> wrote in message
    news:094e01c34b7a$6dab9300$a301280a@phx.gbl...
    > Hi all!
    >
    > Is it possible to lock a folder and its files with ASP.NET
    > (-> VB.NET Code)?
    >
    > for example:
    > if a user now trys to reach a specific file in a folder
    > (for example: [url]www.myserver.com/somefolder/somefile.exe[/url]) he
    > should not be allowed to download it.
    > i already blocked the user from directory browsing but he
    > still can download the file if he knows the whole url.
    > so, is it possible to block users (for example with
    > ASP.NET) to download a certain file?
    >
    > THX
    >
    > Chris

    Chris Jackson Guest

  4. #3

    Default Re: Lock Folder with ASP.NET

    Thx for the help! :-)

    Greetz Chris

    "Chris Jackson" <chrisj@mvps.org> schrieb im Newsbeitrag
    news:%23ToTL9ITDHA.3796@tk2msftngp13.phx.gbl...
    > NTFS permissions will do this, if you are using Windows Authentication.
    You
    > can also manipulate your web.config in the specified folder if you are
    using
    > forms authentication to control access.
    >
    > --
    > Chris Jackson
    > Software Engineer
    > Microsoft MVP - Windows XP
    > Windows XP Associate Expert
    > --
    > "Chris" <christian.binder@direkt.at> wrote in message
    > news:094e01c34b7a$6dab9300$a301280a@phx.gbl...
    > > Hi all!
    > >
    > > Is it possible to lock a folder and its files with ASP.NET
    > > (-> VB.NET Code)?
    > >
    > > for example:
    > > if a user now trys to reach a specific file in a folder
    > > (for example: [url]www.myserver.com/somefolder/somefile.exe[/url]) he
    > > should not be allowed to download it.
    > > i already blocked the user from directory browsing but he
    > > still can download the file if he knows the whole url.
    > > so, is it possible to block users (for example with
    > > ASP.NET) to download a certain file?
    > >
    > > THX
    > >
    > > Chris
    >
    >

    Christian Binder 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