Re: [WebDNA] directory protection questions
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100259
interpreted = N
texte = >so all you should have to do it match up your passwords between your login>system and your htpassword file and use htaccess protection.And therein lies the problem. Generating the=20passwords in encrypted format for htaccess to=20interpret. The encryption is tied to the=20directory being protected. If there was a command=20in webcat to do this, it would be great. Will=20Starck sent a link earlier that shows how to do=20this from the command line. Once you get the=20encryption down, then it's just a matter of=20putting the whole thing together, so the new=20entry is added when someone signs up, and also so=20the file is regenerated as people's memberships=20expire. To run the shell script, I have to=20involve my ISP, since I am no longer running my=20own server.I'm getting there... thanks everyone for your=20help so far! I promise to share once complete.TerryTerry,Sorry - yea - I misunderstood what you were=20looking for. The code I posted is to control file=20downloads, if you want to show the image in html=20page you could try the =A0code below.All I am doing here is denying public access to=20the folder, allowing access to WebDNA (the=20'Options ExecCGI'), and then proxying the image=20through WebDNA. =A0I came across this page and=20thought it might be possible with WebDNA=20(
http://www.l=unawebs.com/blog/2008/02/22/secure-file-download/).If you're using browser authentication already -=20then I thought realm protection used this - so=20all you should have to do it match up your=20passwords between your login system and your=20htpassword file and use htaccess protection.- TomDemo URL
http://www.revolutionari=es.ie/testspace/test2.tmplhtaccess in folder to be protectedAuthType BasicAuthName "Restricted Stuff"Options ExecCGIWebDNA Template showing image[!][/!]
WebDNA Template that calls in image[!][/!][text]exportFilePath=3Dsecure/[/text][text]exportFile=3Dtab.png[/text][text]line_ending=3D%0D%0A[/text][returnRaw=20binarybody=3D[exportFilePath][exportFile]]HTTP/1.0=20200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: image/png[unurl][line_ending][/unurl][!][/!][/returnraw]-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightJacket.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Associated Messages, from the most recent to the oldest:
>so all you should have to do it match up your passwords between your login>system and your htpassword file and use htaccess protection.And therein lies the problem. Generating the=20passwords in encrypted format for htaccess to=20interpret. The encryption is tied to the=20directory being protected. If there was a command=20in webcat to do this, it would be great. Will=20Starck sent a link earlier that shows how to do=20this from the command line. Once you get the=20encryption down, then it's just a matter of=20putting the whole thing together, so the new=20entry is added when someone signs up, and also so=20the file is regenerated as people's memberships=20expire. To run the shell script, I have to=20involve my ISP, since I am no longer running my=20own server.I'm getting there... thanks everyone for your=20help so far! I promise to share once complete.TerryTerry,Sorry - yea - I misunderstood what you were=20looking for. The code I posted is to control file=20downloads, if you want to show the image in html=20page you could try the =A0code below.All I am doing here is denying public access to=20the folder, allowing access to WebDNA (the=20'Options ExecCGI'), and then proxying the image=20through WebDNA. =A0I came across this page and=20thought it might be possible with WebDNA=20(http://www.l=unawebs.com/blog/2008/02/22/secure-file-download/).If you're using browser authentication already -=20then I thought realm protection used this - so=20all you should have to do it match up your=20passwords between your login system and your=20htpassword file and use htaccess protection.- TomDemo URLhttp://www.revolutionari=es.ie/testspace/test2.tmplhtaccess in folder to be protectedAuthType BasicAuthName "Restricted Stuff"Options ExecCGIWebDNA Template showing image[!][/!]
WebDNA Template that calls in image[!][/!][text]exportFilePath=3Dsecure/[/text][text]exportFile=3Dtab.png[/text][text]line_ending=3D%0D%0A[/text][returnRaw=20binarybody=3D[exportFilePath][exportFile]]HTTP/1.0=20200 OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: image/png[unurl][line_ending][/unurl][!][/!][/returnraw]-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightJacket.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Terry Wilson
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:
[WebDNA] [OT] Google redirect or not (2014)
New public beta available (1997)
Virtual hosting and webcatNT (1997)
Serial Number Question (1997)
Shipping charges based on dollar level (1997)
WCS Newbie question (1997)
thread discussion solution (2000)
[WebDNA] WebDNA Host being retired (2014)
[ShowNext] (1997)
my price won't move (1997)
Cold Fusion (1998)
WebCat2b15MacPlugin - showing [math] (1997)
Active Server Code... (1998)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
Random Image (1998)
WebCat with WebTen (1998)
Problems with [Applescript] (1997)
WebCat for Unix?? (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
[Cart] ... (1997)