Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default .htaccess help pls.

    Ok, im making a jukebox like thing, and for legal reasons, users wont be able to download or see the mp3 files.

    Does anyone know the code to protect files in this directory with .htaccess?

    Thanks
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    An easier solution, CHMOD the directory/files to 770 (the user and group on the server can read, write and execute, but others/viewers cannot).
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  3. #3
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Now the player cant access the files pmsl !
    Coming and going...
    Highers are getting the better of me

  4. #4
    Join Date
    Sep 2004
    Location
    Liverpool
    Posts
    801
    Tokens
    0

    Default

    When putting links to your files don't make them global i.e yoursite.com/files/file.mp3 use the server link i.e /home/user/public_html/files...
    "A stupid man's report of what a clever man says can never be accurate, because he unconsciously translates what he hears into something he can understand."

  5. #5
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    It is currently using server link :S

    I dunno if its because of the fact that its a flash object the server link is being converted to a global link somewhere.
    Coming and going...
    Highers are getting the better of me

  6. #6
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    You could disallow every IP from accessing it and then allow the server to access it?

  7. #7
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    which would have to be done using .htaccess ?

    And im sure ive saw it somewhere, just cant remember the code

    Code:
    Allow Deny All
    Or something?
    Coming and going...
    Highers are getting the better of me

  8. #8
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by MrCraig View Post
    which would have to be done using .htaccess ?

    And im sure ive saw it somewhere, just cant remember the code

    Code:
    Allow Deny All
    Or something?
    PHP Code:
    <limit GET>
      
    order deny,allow
      deny from all
      allow from localhost
    </limit

  9. #9
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    You can't deny everyone, as the flash object would have to connect to it, and the flash object connects to it via your IP.

  10. #10
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    :S

    So any more suggestions lol?
    Coming and going...
    Highers are getting the better of me

Page 1 of 2 12 LastLast

Posting Permissions

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