Folder security

Discussion in 'Apache' started by testblanc, Feb 22, 2008.

  1. #1
    Hi,

    I would like to store in my webserver (dedicated server) many mp3 files (up to 1000) that my application in the same server can use to display songs.

    I just create a directory called music and I upload some mp3 files in it for the test.

    I can reach the file using http://mywebsite/music/mp3-1.mp3 and so on.

    What I would like to do:
    =>Protect the directory so that only my webapplication in localhost (or personnal IP) can reach the directory music and all its content. I want to avoid people coming from external IP to grab all the music or to access the music just by the url.

    I tried .htaccess but this did not work
    I would like to try Squid but I don't really know if I need it

    Thanks for your help
     
    testblanc, Feb 22, 2008 IP
  2. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A .htaccess file should be able to do the job but there are several reasons why it might not have worked.

    What did you put in your .htaccess file ?
     
    Ladadadada, Feb 24, 2008 IP