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