User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 332,619 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,232 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 429 | Replies: 1
Reply
Join Date: Dec 2007
Posts: 2
Reputation: susan10 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
susan10 susan10 is offline Offline
Newbie Poster

How to secure files, without active directories

  #1  
Apr 3rd, 2008
My cfm application runs fine, but I have a problem securing my pdf files:
The application.cfm/login.cfm only works with .cfm files.
So if a user write the full adress (http://www.mysite.com/pdf/onlyforusers.pdf), the file will popup in the browser, - not god!
Is the a way to make the user login - before the pdf is shown.?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 32
Reputation: cmhampton is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 3
cmhampton cmhampton is offline Offline
Light Poster

Re: How to secure files, without active directories

  #2  
Apr 3rd, 2008
I'm not sure if this will work, but create an application.cfm file in the pdf folder that has user authentication code. I believe that the CF processor will read this file before it sends the pdf to the user. Unfortunately, I don't currently have a CF server to test this with, so I'm kinda going by memory.
Last edited by cmhampton : Apr 3rd, 2008 at 3:13 pm.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ColdFusion Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 1:51 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC