Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on Forbid intry into my sub folders? in the Shared & Semi-Dedicated forum
I have a graphics web site and I use a lot of sub-folders for different graphics. How is the best way to stop anyone from ...

  1. #1
    JPC Member
    Join Date
    May 2004
    Location
    Florida
    Posts
    30

    Exclamation Forbid intry into my sub folders?

    I have a graphics web site and I use a lot of sub-folders for different graphics. How is the best way to stop anyone from looking into my sub folders?
    Thanks,
    Patti

  2. #2
    A geezer, with 1 foot in. Oldfrog's Avatar
    Join Date
    Apr 2004
    Posts
    204
    If protecting those subdirectories with a password is an option there is a Password Protection feature in the Control Panel.
    Gravity, more than a good idea, it's the law!

  3. #3
    coin operated boy Rye Seronie Oh's Avatar
    Join Date
    Mar 2005
    Location
    Crosby, TX
    Posts
    125
    Yeah. You can use the password protect feature in cPanel, or you can use the manual method, htaccess and htpasswd. That's what I do. cPanel's function is basically a graphical and easy to use front end for those tools.
    Ryan Ottele
    Web: http://www.sparkeh.com/
    Mail: ryan.ottele[[@]]gmail.com

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    You can stop them from looking at the directory listings by placing an index.html file in the directory with anything of your choice in it, or by placing a .htaccess file with (at least) one line:
    Code:
    OPTIONS -INDEXES
    in the directory, or any parent directory.

    Either will prevent people from LOOKING at your directories (in fact "OPTIONS -INDEXES") should be the default, it's possible that a parent directory has an "OPTIONS +INDEXES" that's currently overriding the system default.

    Neither will prevent people from looking at individual files for which they already know (or can guess) the filenames.

    Good luck.

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Patti
    I have a graphics web site and I use a lot of sub-folders for different graphics. How is the best way to stop anyone from looking into my sub folders?
    Thanks,
    Patti
    One thing I do is put empty (zero byte) 'index.html' files in all my folders. I do other things as well, but even if everything else fails, all 'they' will see is a blank white screen...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    coin operated boy Rye Seronie Oh's Avatar
    Join Date
    Mar 2005
    Location
    Crosby, TX
    Posts
    125
    Actually, it would be Options -Indexes. I thought that htaccess files were case sensitive?

    Quote Originally Posted by Ron
    You can stop them from looking at the directory listings by placing an index.html file in the directory with anything of your choice in it, or by placing a .htaccess file with (at least) one line:
    Code:
    OPTIONS -INDEXES
    in the directory, or any parent directory.

    Either will prevent people from LOOKING at your directories (in fact "OPTIONS -INDEXES") should be the default, it's possible that a parent directory has an "OPTIONS +INDEXES" that's currently overriding the system default.

    Neither will prevent people from looking at individual files for which they already know (or can guess) the filenames.

    Good luck.
    Ryan Ottele
    Web: http://www.sparkeh.com/
    Mail: ryan.ottele[[@]]gmail.com

  7. #7
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    Quote Originally Posted by Apache HTTP Server -- Configuration Files
    Syntax of the Configuration Files
    Apache configuration files contain one directive per line. The back-slash "\" may be used as the last character on a line to indicate that the directive continues onto the next line. There must be no other characters or white space between the back-slash and the end of the line.

    Directives in the configuration files are case-insensitive, but arguments to directives are often case sensitive.
    Source: http://httpd.apache.org/docs/configuring.html
    [Emphasis Mine]

Bookmarks

Posting Permissions

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