Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Securing .pdfs in a subfolderSecuring .pdfs in a subfolder
Previous
 
Next
New Post
10/15/2008 5:24 PM
 

Hi,

I have a subfolder that I want to secure thousdands of .pdfs in and only give access to those logged in.  To this end I tried the ASP.NET way and added in the deny="?" for the appropriate location path, as well as configuring IIS to pass .PDFs through asp.net.  The problem is that when a logged in user tries to access the pdf, they are asked to login with a popup (not the login screen), and no matter what I try I can't figure out which user name and password it is looking for (admin, host, Windows Auth..nothing is working).  Any ideas?  It might be important to note that this is in a child portal. 
I know that DNN now has "Secure" folders, but going through manually and uploadinging thousands, or reverse engineering the process and doing it programmatically seems like case scenario.

Thanks.

 
New Post
10/16/2008 7:01 AM
 

set folder type to "Secure file system" and create a new folder (will be identified by a lock icon)

move all your documents into it. If access is done by fileID, you are done.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/16/2008 9:32 AM
 

But this still won't keep someone from "guessing" the absolute address of those .PDFs and then being able to view them without being authenticated, will it?  Or a search engine indexing them?

 
New Post
10/16/2008 2:15 PM
 

No, it won't.  Serve them from the database or put them in a folder outside the web site heirachy and stream them.  Or switch to Server 2008/IIS 7.

Jeff

 
New Post
10/16/2008 3:23 PM
 

nkab wrote
 

But this still won't keep someone from "guessing" the absolute address of those .PDFs and then being able to view them without being authenticated, will it?  Or a search engine indexing them?

Files in a "Secure File System" Folder are not delivered by the web server. technically, they get appended a .config suffix, preventing the option to download them using the url, those files can only be delivered using linkclick.aspx. which checks for DNN folder permission (to be specified in lower part of admin :: File Manager module).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Securing .pdfs in a subfolderSecuring .pdfs in a subfolder


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out