How do I disable Directory Browsing?
To disable directory browsing you can use a htaccess file. Open up a text editor (e.g. Notepad) and put the following line in it:
[code:1]
Options -Indexes
[/code:1]
Now select Save As… from the menu and select ‘All files’ in the Save as type bit before typing a filename. For the filename then type ‘.htaccess’ (without quote marks and remember the dot at the start).
Next simply upload this to your [b]public_html[/b] directory and the browsing of directories on your account will be disabled.
1 comment October 7th, 2008
