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. Prohibit Downloading from Non-registered user like Codeproject.com

Prohibit Downloading from Non-registered user like Codeproject.com

Scheduled Pinned Locked Moved ASP.NET
4 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.
  • M Offline
    M Offline
    M A A Mehedi Hasan
    wrote on last edited by
    #1

    Dear All, I just wondering how Codeproject.com prohibits non-registered users downloading any zip files attached in articles. For example, when I sign in and try to download any zip files attached in articles, I am able to download it. However, when I sign out and try to download any zip files simply I can not download. In both cases, the actual path of zip file seems transparent to user. How may I implement this feature (keeping download url transparent to user but prohibiting non-registered users to download) in my personal website? Any sort of suggestions, references, examples or articles are greatly appreciated. Sincerely Yours,

    Mehedi Hasan

    Y U 2 Replies Last reply
    0
    • M M A A Mehedi Hasan

      Dear All, I just wondering how Codeproject.com prohibits non-registered users downloading any zip files attached in articles. For example, when I sign in and try to download any zip files attached in articles, I am able to download it. However, when I sign out and try to download any zip files simply I can not download. In both cases, the actual path of zip file seems transparent to user. How may I implement this feature (keeping download url transparent to user but prohibiting non-registered users to download) in my personal website? Any sort of suggestions, references, examples or articles are greatly appreciated. Sincerely Yours,

      Mehedi Hasan

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      M A A Mehedi Hasan wrote:

      keeping download url transparent to user but prohibiting non-registered users to download)

      what do you mean by transparent? CP links are not transparent, you can clearly see the URL path. What you need to do is add Users/Membership to your site and allow users to login. Once user is logged in keep their logged in state (session,cookie etc). Then when clicks on a link, check if they are logged in, if so allow them to continue, if not take them to login page. Alternatively, show the link only when a user is logged in, otherwise the user does not get to see the link.

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      1 Reply Last reply
      0
      • M M A A Mehedi Hasan

        Dear All, I just wondering how Codeproject.com prohibits non-registered users downloading any zip files attached in articles. For example, when I sign in and try to download any zip files attached in articles, I am able to download it. However, when I sign out and try to download any zip files simply I can not download. In both cases, the actual path of zip file seems transparent to user. How may I implement this feature (keeping download url transparent to user but prohibiting non-registered users to download) in my personal website? Any sort of suggestions, references, examples or articles are greatly appreciated. Sincerely Yours,

        Mehedi Hasan

        U Offline
        U Offline
        User 4219745
        wrote on last edited by
        #3

        In ASP.net you can define a folder that can be accesed only the user is loged on to do this you have to define location like

        U 1 Reply Last reply
        0
        • U User 4219745

          In ASP.net you can define a folder that can be accesed only the user is loged on to do this you have to define location like

          U Offline
          U Offline
          User 4219745
          wrote on last edited by
          #4
          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