SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member anujit's Avatar
    Join Date
    May 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Disallow Directory Listing

    hello everybody,

    I want to disallow "Directory Listing" for certain directories.

    How can I do it? pls help..
    Thanks and Regards,
    Anujit Karmakar

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    Whistler, Canada
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi anujit,

    You can either put the following in the .htaccess file located in the directory:

    Code:
    Options -Indexes
    or create a file named index.html and leave it empty.

    Also, some webhosts provide this feature in their user control panel, have a look at your host's documentation to see if you can find it in there.

    Hope this helps.

    Cheers,
    Pepe


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
  •