View Full Version : Password protected and Security of File

06-24-2005, 10:35 PM
I need some help.

I have a PHP file which contains a username and password and a FLASH file. So when someone comes to this page they need the username/password inorder to view the FLASH file. I have been told now that the FLASH file is accessible without even using the username/password by typing the entire web extension including the .swf.

So how do I create a username and password which can then access a FLASH file that is secured from anyone trying to retreive it?? Can anyone help me with this?


06-24-2005, 10:38 PM
you have a couple of different options as I see it, you can use .htaccess and put the flash file in a passworded directory (surest way to do it) or you can setup a db with users and their passwords and when they log in successfully redirect them to the file.
hope that helps.

06-24-2005, 11:08 PM
Thanks but HOW do I do this?

I'm confused in what goes in the .htpasswd file and where do I upload it to? I'm more of a designer than I am technical.

Is this what I do?
Save a file as .htpasswd and upload it outside of the web root? The contents of this file should read:

sample: username
sample: password

And then save a file called .htaccess file and upload it outside of the web root? The contents will be:

AuthName "Section Name"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user

So the flash file will be where?

And so what if I have a number of files to be protected?


06-25-2005, 04:43 AM
So, you can make it easylier by creating a newtopic, then set password to view it, all your flash should be post in this topic. every user could not acess without password (not require username, so, u just send the pass for who u want)