Web Hosting Talk







View Full Version : How can I disble the browsing directory function?


EasyOne
02-25-2004, 11:42 PM
i hav root acces to my cpanel server.
How can I disble the browsing directory function?

MGCJerry
02-26-2004, 12:12 AM
Put this in your httpd.conf file, or in an .htaccess file...


Options -Indexes


Edit:
Assuming you're talking about apache, and people browsing directories in a browser.

wheimeng
02-26-2004, 12:26 AM
How bout making it global config?

mp3sattack
03-24-2004, 01:24 AM
in the file manager of the Cpanel edit the .htaccess file

add this line

IndexIgnore *



without cpanel, you can find the info here:
http://www.javascriptkit.com/howto/htaccess11.shtml




it might not be the newest topic here but i was searching this at the boards and i found that site in google, thought it's a good reference to have around the board, check out that site, also explains how to avoid hotlinking.

;)