Results 1 to 7 of 7

Thread: Restrict Downloadable Files

  1. #1

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Restrict Downloadable Files

    Is it possible to be able to restrict files that a browser can access? For instance, any files in the bin directory are automatically classified as not existant, but how can you extend this to additional files such as databases etc that work the site, that the user shouldn't be allowed to download?
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Download this:
    http://www.microsoft.com/technet/sec...s/urlscan.mspx

    and add the extensions you want to the INI file.

  3. #3

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Is this how the ASP.NET files in the bin directory are protected, or can't you modify/add to that list?
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Sorry, this is the only way I know of. It's very likely that the list of extensions are stored in some IIS config file, but I do not know where they are. The link above is the only way I know of. You can add your extensions to the list associated with it.

  5. #5

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    OK, thanks. Though I'll leave the topic open because it wasn't fully solved . Will try your solution and tell you how it goes.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    The bin directory is most likely protected by the IIS server.

    Any other protection that is afforded is made possible by setting authorization settings on a subfolder, and defining whom can access that folder.
    Last edited by nemaroller; Oct 27th, 2004 at 12:56 PM.

  7. #7

    Thread Starter
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Do you mean like using Windows accounts to lock it down?
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

Posting Permissions

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



Click Here to Expand Forum to Full Width