[WebDNA] Can I do something with webdna to pass-protect an attempt to access a swf file directly?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103433
interpreted = N
texte = Hi all I am now writing and installing (cookie/database-based) code to pass- protect ("parent") pages such as this one: #1) http://www.notmyrealdomain.com/dir1/dir2/Introduction.html ..so that a user cannot watch a shockwave movie unless he has a valid user/pass in my webdna db. (This parent page uses javascript to automatically start to play a shockwave movie which is in that same directory) i.e. this one: #2) http://www.notmyrealdomain.com/dir1/dir2/Introduction.swf I am all set in every way, except that I do not know how to stop a user from simply entering the immediately-above path (#2) to the swf file directly, and so bypassing my user/pass protection code which is in the parent page (#1) (whose path I pasted way above). If I manage to get the shared-host server admin to put server-side (apache? .htaccess?) "realm protection" on the whole folder then the user will never even be able to reach my parent page (#1). If I move the swf file to a new directory and manage to reconfigure the javascript to work to load it at the new location, then maybe it makes sense to use apache/htaccess realm protection for that NEW folder which contains ONLY the swf file.. but then will the parent page still be able to load the swf file without the apache/htaccess user/ pass? Or do you have any suggestions how to solve this? I realize this is bordering on OT, but I'd love to solve with pure webdna if possible. thanks for any feedback, -Govinda Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Can I do something with webdna to pass-protect an attempt to access a swf file directly? (Govinda 2009)
  2. Re: [WebDNA] Can I do something with webdna to pass-protect an attempt to access a swf file directly? (Govinda 2009)
  3. [WebDNA] Can I do something with webdna to pass-protect an attempt to access a swf file directly? (John Butler 2009)
Hi all I am now writing and installing (cookie/database-based) code to pass- protect ("parent") pages such as this one: #1) http://www.notmyrealdomain.com/dir1/dir2/Introduction.html ..so that a user cannot watch a shockwave movie unless he has a valid user/pass in my webdna db. (This parent page uses javascript to automatically start to play a shockwave movie which is in that same directory) i.e. this one: #2) http://www.notmyrealdomain.com/dir1/dir2/Introduction.swf I am all set in every way, except that I do not know how to stop a user from simply entering the immediately-above path (#2) to the swf file directly, and so bypassing my user/pass protection code which is in the parent page (#1) (whose path I pasted way above). If I manage to get the shared-host server admin to put server-side (apache? .htaccess?) "realm protection" on the whole folder then the user will never even be able to reach my parent page (#1). If I move the swf file to a new directory and manage to reconfigure the javascript to work to load it at the new location, then maybe it makes sense to use apache/htaccess realm protection for that NEW folder which contains ONLY the swf file.. but then will the parent page still be able to load the swf file without the apache/htaccess user/ pass? Or do you have any suggestions how to solve this? I realize this is bordering on OT, but I'd love to solve with pure webdna if possible. thanks for any feedback, -Govinda John Butler

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:

[format xs] freeze (1997) WebTen and WebCat (1997) Emailer setup (1997) many-to-one problem (1998) Sorting by date (1997) WCS Newbie question (1997) Mirroring WebCat Servers (2001) Re:2nd WebCatalog2 Feature Request (1996) cart converting to scientific notation format (2001) WebCat2 - storing unformatted date data? (1997) Catalogs and W* (1996) Converting characters to numbers ... (1997) What file? (1997) Affiliate Marketing Question #2 (1998) multiple search commands (1997) Running 2 two WebCatalog.acgi's (1996) WebCat2b15MacPlugin - [protect] (1997) A question about security (1998) Country & Ship-to address & other fields ? (1997) Hard Questions ? (1997)