Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Password protected and Security of File

    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?

    Webgurl

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey,
    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.

  • #3
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

    Webgurl

  • #4
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •