Login to Members Area

Choose the service you want to log in
24x7x365 Presence
Live Chat

Hosting Blog


How to stop directory browsing in Apache

Sometimes we've seen that when we browse a domain, we see the directory contents in the browsing mode which is not good from the perspective of security.

For a particular domain, we can stop this with .htaccess using the directive below:-


Options -Indexes


Similarily, if we want to enable the indexing we can use the directive below:-


Options +Indexes


That's it.

Sachin Monday 02 September 2013 - 7:22 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.