Re: [WebDNA] directory protection questions
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100237
interpreted = N
texte = Terry Wilson wrote:> Can someone point me in the right direction for managing directory > protection with WebDNA? Not page protection... directory protection. I > have libraries full of images on a pay-site, and would like to get this > matter resolved once and for all. It needs to happen in real-time so > people can gain access instantly.I can think of two ways of doing something similar:1) Random file namesJust choose file names that aren't easy to guess.This is a simple low security solution and works well if the customer is supposed to have permanent access to the file once he/she has paid for it.2) [COPYFILE]Keep the original files hidden at all times and create temporary copies for each customer.It's not exactly real-time but provided the files are reasonably small, we're talking only a few seconds delay.You better make sure the server can handle it though. If you have a lot of customers, you'll end up with some serious disc and processor load.Oh, and remember to add a script for deleting the temporary files after a set amount of time too!Frank Nordberghttp://www.musicaviva.comhttp://stores.ebay.com/Nordbergs-Music-Store?refid=store
Associated Messages, from the most recent to the oldest:
Terry Wilson wrote:> Can someone point me in the right direction for managing directory > protection with WebDNA? Not page protection... directory protection. I > have libraries full of images on a pay-site, and would like to get this > matter resolved once and for all. It needs to happen in real-time so > people can gain access instantly.I can think of two ways of doing something similar:1) Random file namesJust choose file names that aren't easy to guess.This is a simple low security solution and works well if the customer is supposed to have permanent access to the file once he/she has paid for it.2)
[copyfile]Keep the original files hidden at all times and create temporary copies for each customer.It's not exactly real-time but provided the files are reasonably small, we're talking only a few seconds delay.You better make sure the server can handle it though. If you have a lot of customers, you'll end up with some serious disc and processor load.Oh, and remember to add a script for deleting the temporary files after a set amount of time too!Frank Nordberghttp://www.musicaviva.comhttp://stores.ebay.com/Nordbergs-Music-Store?refid=store
Frank Nordberg
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:
Bugs? What Bugs? was:Spawning Holdup? (2000)
WC 2.0 frames feature (1997)
Locking up with WebCatalog... (1997)
Great product and great job ! (1997)
Security Levels... Possible? (2000)
Installer AppleScript (2000)
WebCatalog Hosting (1996)
show if date < expiry date (small corrections) (2002)
WebCatalog-NT?'s (1996)
[WebDNA] passing a variable in an include - precedence (2015)
Cobalt RaQ (2000)
Color (2000)
WebDelivery downloads alias, not original ? (1997)
[OT] : Chat Room on OSX (2003)
Developer Links Exchange (2003)
WebCatalog/Mac 2.1b2 - PIXO (1997)
[WebDNA] Only one request at a time? (2011)
RE: WebDNA-Talk searchable? (1997)
[encrypt] problems? (1998)
Credit card processing options. . . (1997)