Re: [WebDNA] Downloadable file protection

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106362
interpreted = N
texte = This is a multi-part message in MIME format. --------------060205000709050701040202 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks Tom. jym On 3/2/11 12:38 AM, Tom Duke wrote: > Jym, > > Hi - so the secure files reside in a folder which is protected by the > following .htaccess file: > > AuthType Basic > AuthName "Restricted Stuff" > Options ExecCGI > > > Then the download template has the following code: > > > [showif [your_authorisation_criteria]=T] > > [text]exportFilePath=path_to_secure_file[/text] > [text]exportFile=secure_filename[/text] > [text]line_ending=%0D%0A[/text] > > [returnRaw binarybody=../[exportFilePath][exportFile]]HTTP/1.0 200 > OK[unurl][line_ending][/unurl][!] > > [/!]Status: 200[unurl][line_ending][/unurl][!] > > [/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!] > > [/!]Content-Disposition: attachment; > filename="[exportFile]"[unurl][line_ending][line_ending][/unurl][!] > > [/!][/returnraw][!] > > [/!][/showif] > > > I am using WebDNA on CentOS so there is a WebDNA bug with > 'Content-Type' - so to get around this I include the following > .htaccess file in the directory with the download template: > > AddType application/octet-stream tmpl > > > Take care > - Tom > > > > --------------------------------------------------------- This message > is sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: > support@webdna.us -- Jym Duane - CTO - Purpose Media Creating Your Success Story Marketing : Television - Internet - Print Phone: (877) 443-1323 Email: jym@purposemedia.com Web: www.purposemedia.com Oregon - www.GuideToOregon.com PO Box 1725,Jacksonville, OR 97530 California - www.OrangeCounty.net PO Box 2025,Capistrano Beach, CA 92624 --------------060205000709050701040202 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Tom.

jym

On 3/2/11 12:38 AM, Tom Duke wrote: Jym,

Hi - so the secure files reside in a folder which is protected by the following .htaccess file:

AuthType Basic
AuthName "Restricted Stuff"
Options ExecCGI


Then the download template has the following code:


[showif [your_authorisation_criteria]=3DT]

[text]exportFilePath=3Dpath_to_secure_file[/text]
[text]exportFile=3Dsecure_filename[/text]
[text]line_ending=3D%0D%0A[/text]

[returnRaw binarybody=3D../[exportFilePath][exportFile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!]

[/!]Status: 200[unurl][line_ending][/unurl][!]

[/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!]

[/!]Content-Disposition: attachment; filename=3D"[exportFile]"[unurl][line_ending][line_ending][/unu= rl][!]

[/!][/returnraw][!]

[/!][/showif]


I am using WebDNA on CentOS so there is a WebDNA bug with 'Content-Type' - so to get around this I include the following .htaccess file in the directory with the download template:

AddType application/octet-stream tmpl


Take care
- Tom



--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.u= s Bug Reporting: support@webdna.us
--


Jym Duane - CTO - Purpose Media

Creating Your Success Story

Marketing : Television - Internet - Print


Phone: (877) 443-1323=C2=A0 =C2=A0

Email: jym@purposemedia.com=C2=A0 =C2=A0

Web: www.purposemedia.com


Oregon - www.GuideToOregon.com

PO Box 1725,=C2= =A0 Jacksonville, OR 97530


California - www.OrangeCounty.net

PO Box 2025,=C2= =A0 Capistrano Beach, CA 92624

--------------060205000709050701040202-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Downloadable file protection (Jym Duane 2011)
  2. Re: [WebDNA] Downloadable file protection (Tom Duke 2011)
  3. Re: [WebDNA] Downloadable file protection (Jym Duane 2011)
  4. Re: [WebDNA] Downloadable file protection (Tom Duke 2011)
  5. Re: [WebDNA] Downloadable file protection (Stuart Tremain 2011)
  6. Re: [WebDNA] Downloadable file protection (Govinda 2011)
  7. [WebDNA] Downloadable file protection ("Psi Prime Inc, Matthew A Perosi " 2011)
This is a multi-part message in MIME format. --------------060205000709050701040202 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Thanks Tom. jym On 3/2/11 12:38 AM, Tom Duke wrote: > Jym, > > Hi - so the secure files reside in a folder which is protected by the > following .htaccess file: > > AuthType Basic > AuthName "Restricted Stuff" > Options ExecCGI > > > Then the download template has the following code: > > > [showif [your_authorisation_criteria]=T] > > [text]exportFilePath=path_to_secure_file[/text] > [text]exportFile=secure_filename[/text] > [text]line_ending=%0D%0A[/text] > > [returnRaw binarybody=../[exportFilePath][exportFile]]HTTP/1.0 200 > OK[unurl][line_ending][/unurl][!] > > [/!]Status: 200[unurl][line_ending][/unurl][!] > > [/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!] > > [/!]Content-Disposition: attachment; > filename="[exportFile]"[unurl][line_ending][line_ending][/unurl][!] > > [/!][/returnraw][!] > > [/!][/showif] > > > I am using WebDNA on CentOS so there is a WebDNA bug with > 'Content-Type' - so to get around this I include the following > .htaccess file in the directory with the download template: > > AddType application/octet-stream tmpl > > > Take care > - Tom > > > > --------------------------------------------------------- This message > is sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: > support@webdna.us -- Jym Duane - CTO - Purpose Media Creating Your Success Story Marketing : Television - Internet - Print Phone: (877) 443-1323 Email: jym@purposemedia.com Web: www.purposemedia.com Oregon - www.GuideToOregon.com PO Box 1725,Jacksonville, OR 97530 California - www.OrangeCounty.net PO Box 2025,Capistrano Beach, CA 92624 --------------060205000709050701040202 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Tom.

jym

On 3/2/11 12:38 AM, Tom Duke wrote: Jym,

Hi - so the secure files reside in a folder which is protected by the following .htaccess file:

AuthType Basic
AuthName "Restricted Stuff"
Options ExecCGI


Then the download template has the following code:


[showif [your_authorisation_criteria]=3DT]

[text]exportFilePath=3Dpath_to_secure_file[/text]
[text]exportFile=3Dsecure_filename[/text]
[text]line_ending=3D%0D%0A[/text]

[returnRaw binarybody=3D../[exportFilePath][exportFile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!]

[/!]Status: 200[unurl][line_ending][/unurl][!]

[/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!]

[/!]Content-Disposition: attachment; filename=3D"[exportFile]"[unurl][line_ending][line_ending][/unu= rl][!]

[/!][/returnraw][!]

[/!][/showif]


I am using WebDNA on CentOS so there is a WebDNA bug with 'Content-Type' - so to get around this I include the following .htaccess file in the directory with the download template:

AddType application/octet-stream tmpl


Take care
- Tom



--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.u= s Bug Reporting: support@webdna.us
--


Jym Duane - CTO - Purpose Media

Creating Your Success Story

Marketing : Television - Internet - Print


Phone: (877) 443-1323=C2=A0 =C2=A0

Email: jym@purposemedia.com=C2=A0 =C2=A0

Web: www.purposemedia.com


Oregon - www.GuideToOregon.com

PO Box 1725,=C2= =A0 Jacksonville, OR 97530


California - www.OrangeCounty.net

PO Box 2025,=C2= =A0 Capistrano Beach, CA 92624

--------------060205000709050701040202-- Jym Duane

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:

[HIDEIF] inside [FOUNDITEM] (1997) M$loth messes with our sites (again) (2004) WebCat2final1 crashes (1997) Error -108 (1997) Add to Cart & List of Products (1997) multi-paragraph fields (1997) Date Range search (1997) Looking up two prices in database? (1997) Rhapsody? (1997) fun with shell scripting (2003) [WebDNA] Use of Linux commandline (2013) Extended [ConvertChars] (1997) color and size options (1997) embedded showif statements (Ooops) (2000) Nested tags count question (1997) Re[2]: Emailed problem (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Trouble changing a variable. (2000) mimeheaders to allow back button to work on a posted page? (2004) Summing fields (1997)