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
    Junior Member UptonGirl's Avatar
    Join Date
    Feb 2009
    Posts
    10
    Member #
    18302
    The site I'm currently working on > http://althea.cs.umass.edu/ckc/01ckcindex.html < needs a "forbidden" page at http://althea.cs.umass.edu/ckc/ - as it stands, there is a file list (ugly :nervous: )

    This is something I haven't done before. Could someone tell me how (preferably a custom one but the usual will do) or point me to a tutorial?

    Thanks.

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    To disable directory access using htaccess, do the following:

    1. Create a file called .htaccess

    2. Put the following line in it:

    Options -Indexes

    3. Upload it to your root web folder.

    That's it!

  4. #3
    Junior Member UptonGirl's Avatar
    Join Date
    Feb 2009
    Posts
    10
    Member #
    18302
    A text file? Or some other format?

    Sorry to be dim - that's the "self taught" downside.

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Yes, a text file with the name .htaccess (no .txt extension). Unfortunately, Windows won't allow you to create a file starting with a "." so you'll have to download it from somewhere else, or create it with a name like "a.htaccess", upload it to your server, and then rename it.

  6. #5
    Junior Member UptonGirl's Avatar
    Join Date
    Feb 2009
    Posts
    10
    Member #
    18302
    Quote Originally Posted by smoseley
    Yes, a text file with the name .htaccess (no .txt extension). Unfortunately, Windows won't allow you to create a file starting with a "." so you'll have to download it from somewhere else, or create it with a name like "a.htaccess", upload it to your server, and then rename it.
    Worked like a charm! Thanks so much. :thumbsup:


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:02 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com