Re: [WebDNA] Downloadable file protection

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106358
interpreted = N
texte = --20cf303bf980df4807049d7bd75b Content-Type: text/plain; charset=UTF-8 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 --20cf303bf980df4807049d7bd75b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jym,

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

= AuthType Basic
AuthName "Restricted Stuff"
Options ExecCGI


Then the down= load template has the following code:


[showif [your_authorisation_criteria]=3DT]

[tex= t]exportFilePath=3Dpath_to_secure_file[/text]
[text]exportFile=3Dsecure_filename[/text]
[text]line_en= ding=3D%0D%0A[/text]

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

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

[/!]Content-Type: application/octet-stream[unurl][line_end= ing][/unurl][!]

[/!]Content-Disposition: attachmen= t; filename=3D"[exportFile]"[unurl][line_ending][line_ending][/un= url][!]

[/!][/returnraw][!]

[/!][/show= if]


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 te= mplate:

AddType application/octet-stream tmpl


Take care
- Tom

<= br>

--20cf303bf980df4807049d7bd75b-- 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)
--20cf303bf980df4807049d7bd75b Content-Type: text/plain; charset=UTF-8 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 --20cf303bf980df4807049d7bd75b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jym,

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

= AuthType Basic
AuthName "Restricted Stuff"
Options ExecCGI


Then the down= load template has the following code:


[showif [your_authorisation_criteria]=3DT]

[tex= t]exportFilePath=3Dpath_to_secure_file[/text]
[text]exportFile=3Dsecure_filename[/text]
[text]line_en= ding=3D%0D%0A[/text]

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

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

[/!]Content-Type: application/octet-stream[unurl][line_end= ing][/unurl][!]

[/!]Content-Disposition: attachmen= t; filename=3D"[exportFile]"[unurl][line_ending][line_ending][/un= url][!]

[/!][/returnraw][!]

[/!][/show= if]


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 te= mplate:

AddType application/octet-stream tmpl


Take care
- Tom

<= br>

--20cf303bf980df4807049d7bd75b-- Tom Duke

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:

Shopping Cart Limits? (1998) New Mac Public Beta Available (1997) SiteEdit NewFile.html ? (1997) Email Obfuscation Function (2008) [WebDNA] Add to cart (2014) protect tag on NT IIS (1997) Price Not Appearing (2000) Non WebDNA forms and timed popups... (2002) Navigator 4.01 (1997) really annoying feature (2001) Almost a there but..bye bye NetCloak (1997) TeaRoom Order fields email account remain empty even thoughthewy are filled. (1997) WebCat2.0b15-to many nested [xx] tags (1997) The IBC root beer has arrived! (1997) [OT] Search Engine Tips (2003) Re[3]: 2nd WebCatalog2 Feature Request (1996) MATH PROBLEM (1997) [OT] ODBC between IIS and remote Access problem (2000) all records returned. (1997) taxTotal, grandTotal (1997)