Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Downloading files

Downloading files

Scheduled Pinned Locked Moved ASP.NET
questionsecurity
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    the pink jedi
    wrote on last edited by
    #1

    I have some files stored in the virtual directory. But I want those files only be able to downloaded only after form authentication. Those not logged in will not be able to access those files even if they typed in the URL How do i go about doing that? Thanks alot

    M I 2 Replies Last reply
    0
    • T the pink jedi

      I have some files stored in the virtual directory. But I want those files only be able to downloaded only after form authentication. Those not logged in will not be able to access those files even if they typed in the URL How do i go about doing that? Thanks alot

      M Offline
      M Offline
      mikailcetinkaya
      wrote on last edited by
      #2

      use forms authentication for that. The privileged directory of forms authentication is where u should put those files. put forms authentication into web.config file. search for details on codeproject by forms authentication... Mikail Çetinkaya . The C# DEveloper

      1 Reply Last reply
      0
      • T the pink jedi

        I have some files stored in the virtual directory. But I want those files only be able to downloaded only after form authentication. Those not logged in will not be able to access those files even if they typed in the URL How do i go about doing that? Thanks alot

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        Heres is a good link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp[^] It would be best however to offer a downloading page, rather than letting them find it. Security wise. Nick 1 line of code equals many bugs. So don't write any!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups