Forum Moderators: phranque

Message Too Old, No Replies

Using htaccess to forbid listing of my directories

htaccess and 403 errors

         

cykaaro

2:28 am on Oct 24, 2003 (gmt 0)

10+ Year Member



New to using .htaccess file and trying to get it set up and running. I want to somehow be able to make it so my directories can't be listed at all, and perferably when someone tries to they get a 403 error page. Can this be done through the htaccess? is it possible? or am I just dreaming? Any help would be greatly appreciated.
thx

jdMorgan

3:01 am on Oct 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cykaaro,

Welcome to WebmasterWorld [webmasterworld.com]!

> make it so my directories can't be listed at all

Sure, see Options -Indexes [httpd.apache.org].

Jim

cykaaro

3:24 am on Oct 24, 2003 (gmt 0)

10+ Year Member



Thanks! greatly appreciated. =)