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.
]]>