PDA

View Full Version : protect a diretory using .htaccess


pk
01-03-2001, 07:21 AM
Can you please tell me how to protect a directory using .htaccess?
Also, if you know any tutorials, please tell me the URL.

Thank you.

Dave-AHFB
01-03-2001, 08:43 AM
Here is a quick and to the point tutorial.

http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html#Basic

Dave

------------------
Advanced HTML For Beginners (http://www.ahfb2000.com)

[This message has been edited by Dave-AHFB (edited 01-03-2001).]

pk
01-03-2001, 03:03 PM
no.. you misunderstood it. I meant this:
say i have 10 images in mysite.com/images
cuz index.html doesn't exist, so people can see my file list. I just wanna disable that so people see permission denied instead. It's like this page http://www.searchbucks.com/cgi-bin

[This message has been edited by pk (edited 01-03-2001).]

singloon
01-03-2001, 03:18 PM
i believe that is a apache server setting - something about directory indexes

------------------
Australian Neon Genesis Evangelion (http://www.eva2000.com/?geek)
<A HREF="http://infilmbox.com/?geek" TARGET=_blank>film - writers - reviewers - reporters - designers
</A>

JDF000
01-03-2001, 06:08 PM
Couldn't you just chmod the directory 700? Or maybe 770?

fatale
01-03-2001, 10:41 PM
Add

Options -Indexes

to the .htaccess file in that directory.

singloon
01-04-2001, 12:31 AM
Originally posted by fatale:
Add

Options -Indexes

to the .htaccess file in that directory. hmmm, that is as good as just putting a blank index.html in a particular directory



------------------
Australian Neon Genesis Evangelion (http://www.eva2000.com/?geek)
<A HREF="http://infilmbox.com/?geek" TARGET=_blank>film - writers - reviewers - reporters - designers
</A>

pk
01-04-2001, 09:23 AM
Thanks for the help. this is the answer
you chmod the DIR. to 710

--------
webmaster of http://www.celebritieszones.com

Click Here!