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 2 of 2

Thread: CHMODing

  1. #1
    Regular Coder
    Join Date
    Jan 2007
    Posts
    123
    Thanks
    20
    Thanked 1 Time in 1 Post

    CHMODing

    Hi,
    I want to CHMOD every directory on the server so that the files can only be seen when access directly.
    IE:
    Users can't access www.mysite.tld/images
    but can access www.mysite.tld/images/animage.jpg

    Hope you understand.

    Thanks

  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    You could use a .htaccess for that, create a file called .htaccess in the root www directory and put this in it:

    Code:
    Options -Indexes

  • Users who have thanked Mwnciau for this post:

    cheechm (04-27-2008)


  •  

    Posting Permissions

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