disable directory browsing

Status
Not open for further replies.

stopgap

New Member
Messages
13
Reaction score
0
Points
0
Stupid question but I can't find out how to disable directory browsing...is this possible and how?

I've searched for "directory browsing" in the kb with no joy.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Add this to your .htaccess file in that directory.

Code:
Options -Indexes

that will give them the message

Forbidden

You don't have permission to access /directory/ on this server.

Note: This will do for every sub-directory in the directory that you place the code in.
 

zapzack

New Member
Messages
606
Reaction score
19
Points
0
Or, you can login to cPanel and click on "Index Manager" near the bottom..
 
Status
Not open for further replies.
Top