Re: Protecting a folder
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35718
interpreted = N
texte = I would be very surprised if resetting the header can do it. The only way (Iknow) to change user and password on the fly is to put them into the URL:http://myname:mypass@www.server.com/download/...But how to hide this? Frames won't fool an experienced user, neither arefresh. And you can't encrypt this part of the URL.Sorry, I have no other idea yet than the move/rename approach. If the filesare not really huge and you can't have a folder outside the root I would tryit: for testing name the files like filename.db which prevents delivery byyour Webstar.The following assumes you have a folder /download/ which holds youroriginal .sit files but all with the suffix .db1 - Deliver a faked listing:[listfiles /download/][getchars start=3&from=end][filename].sit[/getchars]
[/listfiles](so the user will never see a .db extension)Yes, the download must point to a template, not to a file.2 - User clicks on a link.3 - Create a temporary folder [SessionID]4 - Move /download/filename.db to /[SessionID]/filename.temp5 - WaitForFile /[SessionID]/filename.temp6 - Rename it to /[SessionID]/filename.sit7 - Redirect to this file, this starts the downloadLater you will find a chance to remove the SessionID from the user anddelete filename.sit plus the temporary folder.We are on Linux now with most servers and I'm not sure if copying largefiles is a good idea on newer Mac's. And you might not need the abovetemp-sit-renaming on Mac after the copy. On Linux I do, because the fileemerges immediately and [waitforfile] sees it to early.Hope, this is worth a try :)Peter---> From: Stuart Tremain
> Reply-To: (WebCatalog Talk)> Date: 04 Aug 2000 10:27:33> To: (WebCatalog Talk)> Subject: Re: Protecting a folder> > I'm using [ListFiles] to display what is available.> > The files are accessible from a protected template. I basically don't want> people to access them without going through the template as it logs their> access etc etc and the visitor would be able to access the folder directly if> I can't protect it.> > Are the ID & pasword passed by the browser in the header, could I reset the> header to include a generic password to get them into the realm from the> template? Would this be secure enough?-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I would be very surprised if resetting the header can do it. The only way (Iknow) to change user and password on the fly is to put them into the URL:http://myname:mypass@www.server.com/download/...But how to hide this? Frames won't fool an experienced user, neither arefresh. And you can't encrypt this part of the URL.Sorry, I have no other idea yet than the move/rename approach. If the filesare not really huge and you can't have a folder outside the root I would tryit: for testing name the files like filename.db which prevents delivery byyour Webstar.The following assumes you have a folder /download/ which holds youroriginal .sit files but all with the suffix .db1 - Deliver a faked listing:[listfiles /download/][getchars start=3&from=end][filename].sit[/getchars]
[/listfiles](so the user will never see a .db extension)Yes, the download must point to a template, not to a file.2 - User clicks on a link.3 - Create a temporary folder [SessionID]4 - Move /download/filename.db to /[SessionID]/filename.temp5 - WaitForFile /[SessionID]/filename.temp6 - Rename it to /[SessionID]/filename.sit7 - Redirect to this file, this starts the downloadLater you will find a chance to remove the SessionID from the user anddelete filename.sit plus the temporary folder.We are on Linux now with most servers and I'm not sure if copying largefiles is a good idea on newer Mac's. And you might not need the abovetemp-sit-renaming on Mac after the copy. On Linux I do, because the fileemerges immediately and [waitforfile] sees it to early.Hope, this is worth a try :)Peter---> From: Stuart Tremain > Reply-To: (WebCatalog Talk)> Date: 04 Aug 2000 10:27:33> To: (WebCatalog Talk)> Subject: Re: Protecting a folder> > I'm using [listfiles] to display what is available.> > The files are accessible from a protected template. I basically don't want> people to access them without going through the template as it logs their> access etc etc and the visitor would be able to access the folder directly if> I can't protect it.> > Are the ID & pasword passed by the browser in the header, could I reset the> header to include a generic password to get them into the realm from the> template? Would this be secure enough?-------------------------------------------------------------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://search.smithmicro.com/
Peter Ostry
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:
WebCat editing, SiteGuard & SiteEdit (1997)
[no_cache]?! (2000)
Cookies and webcat (1997)
WebCat and image maps (1997)
Multi-processor Mac info ... (1997)
Version 2.0 and 1.6 simultaneous (1997)
SMSI FTP - calander system (2002)
Removing a character (2000)
Bug Report, maybe (1997)
Running _every_ page through WebCat ? (1997)
b18 problem on NT 4.0 (1997)
Template not found error messages (1997)
[searchString] (1997)
Upload Progress Bar (2003)
Before I Can Begin . . . (1998)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
java chat (2002)
nesting limits? (1998)
[ShowIf] and empty fields (1997)
autosensing lanague selection (1997)