Re: Protecting Files
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62164
interpreted = N
texte = I've done this by creating a copy of the PDF based upon the user's credentials. Here's the scenario:1) .tpl page that can only be viewed if the user's credentials are found in the database. If the page is accessed without credentials they are redirected to a login page whose action points to this .tpl.2) Once the credentials are verified, have a piece of code that creates a copy of the PDF using something like [cart].pdf.3) The original PDF has permissions set such that the web server will not display it.4) Use a trigger to remove the PDF copies that are older than a predetermined time just in case the user bookmarks it.MarcClint Davis wrote:> I'm running iTools 7.3/Apache 2.0 on an Xserve.> > I have several PDF files on my site. To view the PDFs, each visitor needs to> register first. Even after they register, I don't want them to be able to> access PDFs directly by typing in the full URL - they must click a link> within the site. Since the links are always visible, I can't just hide/show> them based on the registration cookie.> > The flow is like this:> > 1. Visitor clicks link to PDF> 2. Are they registered?> a. Yes> i. Show the PDF> b. No> i. Take them to the register page> ii. Visitor completes form and clicks submit> iii. Show the PDF> > How can this be done?> Use .htaccess?> Use mod_rewrite?> Other solution?> > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/> > -- -------------------------------------------Marc ThompsonSoftware EngineerOffice of Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu--------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I've done this by creating a copy of the PDF based upon the user's credentials. Here's the scenario:1) .tpl page that can only be viewed if the user's credentials are found in the database. If the page is accessed without credentials they are redirected to a login page whose action points to this .tpl.2) Once the credentials are verified, have a piece of code that creates a copy of the PDF using something like [cart].pdf.3) The original PDF has permissions set such that the web server will not display it.4) Use a trigger to remove the PDF copies that are older than a predetermined time just in case the user bookmarks it.MarcClint Davis wrote:> I'm running iTools 7.3/Apache 2.0 on an Xserve.> > I have several PDF files on my site. To view the PDFs, each visitor needs to> register first. Even after they register, I don't want them to be able to> access PDFs directly by typing in the full URL - they must click a link> within the site. Since the links are always visible, I can't just hide/show> them based on the registration cookie.> > The flow is like this:> > 1. Visitor clicks link to PDF> 2. Are they registered?> a. Yes> i. Show the PDF> b. No> i. Take them to the register page> ii. Visitor completes form and clicks submit> iii. Show the PDF> > How can this be done?> Use .htaccess?> Use mod_rewrite?> Other solution?> > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/> > -- -------------------------------------------Marc ThompsonSoftware EngineerOffice of Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu--------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Marc Thompson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
calculate age (2003)
Re1000001: Setting up shop (1997)
[WebDNA] Help with ReplaceFoundItems (2009)
Emailer setup (1997)
problems with 2 tags (1997)
Need help with emailer- 2 issues (1997)
this year (2000)
JavaScript (1998)
shipcost (1997)
Day of the week (2006)
Re:2nd WebCatalog2 Feature Request (1996)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
Personal Web Server combined with Webcatalog 2.1 (1998)
[WebDNA] WebDNA staging server (2008)
Dates - Search and Sorting (1999)
Can you do this??? and other stuff (1997)
PIXO support (1997)
Pirated WebCat? NOT... (2003)
WebCat2b15MacPlugin - [protect] (1997)
TcpConnect get files on ver. 5.x BUG BUG BUG (2004)