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!


Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2005
    Location
    Earf lolzzz!!1oneone!shift!
    Posts
    803
    Tokens
    0

    Default Disallow access to directory through the web?

    I want to put some js files in a folder where they cannot be accessed by navigating to them through a web browser, but still be able to link them into my webpages. I don't know if this is possible, but I think I'll need to use .htaccess somehow.

    Thanks

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    If you have cPanel click "Password protect Directories" then it will do it for you.

    EDIT: Reread the post - try hotlink protection

    PM me for more help if you need it

    Good luck.

  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Hmm.. Just make loads of folders..

    Like a maze..
    Looking for a good desiner to design a social networking template.

    PM me.

  4. #4
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Quote Originally Posted by Ini View Post
    Hmm.. Just make loads of folders..

    Like a maze..
    Pointless because you can look in the source then see the path straight away :p

  5. #5
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Pointless because you can look in the source then see the path straight away :p
    Oh well
    Looking for a good desiner to design a social networking template.

    PM me.

  6. #6
    Join Date
    Sep 2005
    Location
    Earf lolzzz!!1oneone!shift!
    Posts
    803
    Tokens
    0

    Default

    People looking in the source is what I was trying to protect against. All they should be able to see is a <script> tag linking to a file they can't see.

    I tried

    order deny,allow
    deny from all
    allow from 127.0.0.1

    in .htaccess but it didn't let the html file access the javascript file, but it blocked users from accessing the file.

  7. #7
    Join Date
    Sep 2005
    Location
    Earf lolzzz!!1oneone!shift!
    Posts
    803
    Tokens
    0

    Default

    I thought about using PHP includes but they would work would they?

Posting Permissions

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