Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member Aleister's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    250
    Member #
    2329
    How do I set it up, so people cannot view the contents of directories, if they enter in the link manually ?

    For example:
    www.somesite.com/info/info.htm

    if someone manually types in: www.somesite.com/info/

    they see a list of all the files in that directory.. instead of just getting an error.

    Thanks
    The Temple of Dagon | Dagon Design
    "That is not dead which can eternal lie, And with strange aeons even death may die." - HPL

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    There are two easy ways:
    1. Create a .htaccess file. I don't know the specific directives, but you can easily create one such that directory listings result in 403 errors.
    2. Add an empty index.html to directories you want to protect.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Well, you can set up an index file that points directly to whatever page you want them to look at. I believe .htaccess files will help you out with this problem as well, though I don't know how to set them up.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  5. #4
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    I believe it's something along the lines of

    Code:
    <Directory /path/to/dir/>
     Options -Indexes
    </Directory>
    Try
    [searchweb].htaccess directory listing[/searchweb]
    to start you off in the right direction
    - Brian

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    .htaccess file with only
    Code:
    Options -Indexes
    will do it for you.
    There and Back Again :Ogre:


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:18 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com