Find the answer to your Linux question:
Results 1 to 3 of 3
Hello. This is like a security breach waiting to happen. You see, I have .htaccess files in every directory I want to protect from prying eyes. However, when I go ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Location
    IceWM
    Posts
    23

    Question CentOS - Apache doesn't notice .htaccess files


    Hello.

    This is like a security breach waiting to happen. You see, I have .htaccess files in every directory I want to protect from prying eyes. However, when I go to look at that directory, it lists the directory, and doesn't give me a forbidden error.

    I mean, it's giving me:
    Index of craps/
    -list of files-
    ...instead of a 403 Forbidden Error.

    Maybe there was some config option that I forgot to change? Any light shed onto this issue would be helpful.

    Thanks,
    Coburn64

  2. #2
    Just Joined!
    Join Date
    Nov 2008
    Posts
    2
    You may use the following line in your .htaccess file to prevent directory listing

    Options -Indexes

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Location
    Lafayette, IN
    Posts
    83
    What are the contents of the .htaccess files you have in those directories?

Posting Permissions

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