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

This is a discussion on Apache handlers in the Shared & Semi-Dedicated forum
Currentyly if someone types in my domain name and one of my subdirectories they can get a list of files in it . What is ...

  1. #1
    JPC Senior Member
    Join Date
    Oct 2002
    Posts
    66

    Apache handlers

    Currentyly if someone types in my domain name and one of my subdirectories they can get a list of files in it . What is the Apache handler that I can add to keep that from happening? I know I could probably put an "index.html" in each directory, but that seems a little too much. Thank you.

  2. #2
    JPC Member
    Join Date
    Sep 2002
    Posts
    17
    Just add:
    IndexIgnore *
    to the .htaccess file in your public_html root and all subdirectories will inherit it.

  3. #3
    JPC Senior Member
    Join Date
    Oct 2002
    Posts
    66
    Worked great. Thanks!

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You can also use

    Options -Indexes

    in your .htaccess. The difference between this method and the one jimdahl presented is what the user sees: this method will give them an error page "Forbidden: You don't have permission to access /dirname/ on this server" the other version will show the index page that would normally be displayed without any files--making it look like an empty directory.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

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
  •