• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

.htaccess file?

Im away from my linux machine but if I remember right you have to use a directory tag and the NoIndex imperitave...

Something like:

<directory=/somewhere>
NoIndex
</directory>

in your .htaccess file.

You should check the exact syntax... as I said I dont have my own config files in front of me...
 
or......

you could just make sure a index.html file is in your cgi-bin directory and any other directory you don't want people to be able to get a listing for...
 
If you want to disable all directory indexes try this in the .htaccess:

Code:
Options ExecCGI Includes FollowSymLinks MultiViews
 
Options ExecCGI Includes FollowSymLinks MultiViews

In which directory should i store the file? Will it disable directory listings for all my directories?
 
Originally posted by lastactionhero
In which directory should i store the file? Will it disable directory listings for all my directories?

You can store it in any one you want. It will disable all directory indexs in that folder and all of it's sub folders.

example:
http://url.com/images/ - you put it in there
http://url.com/images/ - gives no dir list
http://url.com/images/temp/ - gives no dir list
http://url.com/img/ - gives dir list
http://url.com/ - put it in there to turn off all dir lists
 
If I would like to specify exact subdirs ?

Hi, regarding above:
If I put .htaccess in a root folder coan I specify exact subdirs which I would like to allow to be listed.

And other question:

<order deny>
deny all
</order>

can I specify subdirs?
 
Re: If I would like to specify exact subdirs ?

I thought i read somewhere something like this:

</directory>
deny from all

Can someone say me if this is correct and/or if this may affect my cgi-bin (they create/modify some files)...

By the Way: I found a page, where all the Apache-Tags
are documentated. Maybe somewone helps is)

http://httpd.apache.org/docs/mod/core.html

okay, bye!

Coldtobi
 
Back
Top