--Boundary_(ID_IL2aMNWdBy95PKt6CMR2Fw)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Another way to do it is if they are a distributor is to display the file as a link. If
they are not, do not display it. Basically, set the content they see dependent upon
whether or
not they are a distributor. For example when you do the user authentication you could
set a session variable, say "distributor" to a value like 0 if they are not and 1 and
use that
variable in your output:
<cfif session.distributor EQ 1>
<a href="somedocument.pdf">
<cfelse>
somedocument.pdf
</cfif>
Just an idea.
Phil
Christian Labrecque wrote:
> How I solved this problem was to put a password
> on the .pdf file(you can do it in the Acrobat)
>
> So after they donwloaded the .pdf,
> you just need to display the appropriate password.
>
> I tried to figured out another way or doing it with .cfm files(cfcontent,
> etc...),
> without luck!!
>
> good luck
>
> ----------------------------------------------
> FILAMENT COMMUNICATIONS
> Bright ideas for a new economy
>
> Christian Labrecque
> Web Developer
>
> http://www.filamentinc.com
>
> 126 York St., Suite 500, Ottawa, Ontario K1N 5T5
> (t) 613-241-7200 (f) 613-241-7157
>
> -----Original Message-----
> From: John Lucas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 17, 2000 11:32 AM
> To: Fusebox
> Subject: password protection for PDF files
>
> I have a site that is going to use cf to provide user authentication for the
> secure area of the website. That part is the easy one.
>
> In this secure area, there are going to be some PDF files that can be viewed
> by the user as long as they remain a distributor for the company. Once they
> are no longer a distributor, they would no longer have access to these
> files.
>
> So, it would be easy to control whether they can log in or not to the site,
> but is there any way to protect the PDF files since they are not coldfusion
> files. What we want to be able to do is prevent bookmarked PDF files from
> being viewed without being logged in.
>
> I realize that if the user were to save the PDF file locally or print it
> while they had access to the files, that there is no way to control that.
> And, that is fine.
>
> Is there a way to protect non-cf files using CF?
>
> Hopefully this makes some sense.
>
> Thanks,
> John Lucas
> [EMAIL PROTECTED]
>
> ----------------------------------------------------------------------------
> --
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> ------------------------------------------------------------------------------
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--Boundary_(ID_IL2aMNWdBy95PKt6CMR2Fw)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Another way to do it is if they are a distributor is to display the file
as a link. If they are not, do not display it. Basically, set the content
they see dependent upon whether or not they are a distributor. For example
when you do the user authentication you could set a session variable, say
"distributor" to a value like 0 if they are not and 1 and use that variable
in your output:
<p><cfif session.distributor EQ 1>
<br><a href="somedocument.pdf">
<br><cfelse>
<br>somedocument.pdf
<br></cfif>
<p>Just an idea.
<p>Phil
<p>Christian Labrecque wrote:
<blockquote TYPE=CITE>How I solved this problem was to put a password
<br>on the .pdf file(you can do it in the Acrobat)
<p>So after they donwloaded the .pdf,
<br>you just need to display the appropriate password.
<p>I tried to figured out another way or doing it with .cfm files(cfcontent,
<br>etc...),
<br>without luck!!
<p>good luck
<p>----------------------------------------------
<br>FILAMENT COMMUNICATIONS
<br>Bright ideas for a new economy
<p>Christian Labrecque
<br>Web Developer
<p><a href="http://www.filamentinc.com">http://www.filamentinc.com</a>
<p>126 York St., Suite 500, Ottawa, Ontario K1N 5T5
<br>(t) 613-241-7200 (f) 613-241-7157
<p>-----Original Message-----
<br>From: John Lucas [<a
href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</a>]
<br>Sent: Tuesday, October 17, 2000 11:32 AM
<br>To: Fusebox
<br>Subject: password protection for PDF files
<p>I have a site that is going to use cf to provide user authentication
for the
<br>secure area of the website. That part is the easy one.
<p>In this secure area, there are going to be some PDF files that can be
viewed
<br>by the user as long as they remain a distributor for the company.
Once they
<br>are no longer a distributor, they would no longer have access to these
<br>files.
<p>So, it would be easy to control whether they can log in or not to the
site,
<br>but is there any way to protect the PDF files since they are not coldfusion
<br>files. What we want to be able to do is prevent bookmarked PDF files
from
<br>being viewed without being logged in.
<p>I realize that if the user were to save the PDF file locally or print
it
<br>while they had access to the files, that there is no way to control
that.
<br>And, that is fine.
<p>Is there a way to protect non-cf files using CF?
<p>Hopefully this makes some sense.
<p>Thanks,
<br>John Lucas
<br>[EMAIL PROTECTED]
<p>----------------------------------------------------------------------------
<br>--
<br>To Unsubscribe visit
<br><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox</a>
or
<br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
<br>the body.
<p>------------------------------------------------------------------------------
<br>To Unsubscribe visit <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.</blockquote>
</html>
--Boundary_(ID_IL2aMNWdBy95PKt6CMR2Fw)--
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.