•
•
•
•
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,597 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,285 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: 428 | Replies: 1
![]() |
•
•
Join Date: Dec 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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.?
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.?
•
•
Join Date: Feb 2008
Posts: 32
Reputation:
Rep Power: 1
Solved Threads: 3
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Similar Threads
- I use Firefox, but IE keeps opening by itself (Viruses, Spyware and other Nasties)
- General Tips for Mac OS X (Mac tips 'n' tweaks)
- Can't get rid of URL Logic Pop up generator (Viruses, Spyware and other Nasties)
Other Threads in the ColdFusion Forum
- Previous Thread: Date function error and cffile
- Next Thread: Windows or Apache


Linear Mode