Ask a Question related to Macromedia ColdFusion, Design and Development.
-
jgladnick #1
Restricting access to a directory of pdf's
I want to restrict access to a directory that contains pdf's.
So lets say i have
/publicpdfs/
/memberpdfs/
public are free for all, members are available once you are logged in. I want
to be able to link to the pdf's (preferably directly), but I need a way to
make sure the user has logged in first. Since I am assuming application.cfm
wont run when loading a pdf, how can I check to make sure the user is logged in?
(besides password protecting the directrory in IIS)
jgladnick Guest
-
Restricting Access to CFX
I was looking into implementing some of the resources of the IHTK toolkit on a web development project I am working on. The tools that are in the... -
Restricting access
Hello, I am trying to creat one page within my site that one certain people can see (need a username and password to access) so car reading the... -
restricting access to log-file
A short and hopefully simple question: I'm using log4net to log to a text file. The text file is located in the root of my webapplikation. How do I... -
Restricting telnet access to user's home directory
On Sat, 8 Mar 2003, Troy Matteoli wrote: I try to limit telnet access to my BBS users here. -
Restricting user to a directory with vsftpd
Is it possible to restrict all users (I am not using anonymous) to their directory and those below? In reading the docs, I am not sure how this... -
Kronin555 #2
Re: Restricting access to a directory of pdf's
The best way, in my opinion, is to use cfcontent.
It won't get you exactly what you want (when you say you'd prefer to link
directly to the pdfs), but it will ensure that users are logged in first.
Make a page, viewpdf.cfm, that you access as follows:
[url]http://www.example.com/viewpdf.cfm?pdf=protectedpdf.pdf[/url]
Then in viewpdf.cfm, you first ensure that they have rights to access the PDF
file, then you do a cfcontent call that includes the
/memberpdfs/protectedpdf.pdf file.
Kronin555 Guest
-
jgladnick #3
Re: Restricting access to a directory of pdf's
That actually might work, thanks!
jgladnick Guest



Reply With Quote

