XHanch Studio Log in | Register | Cart

Forum

Notifications
Clear all

[How to] Disable/prevent/forbid directory browsing/exploring using .htaccess

1 Posts
1 Users
0 Likes
1,305 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

Apache web server allow directory browsing by default. It’s always good to disable directory browsing in security aspect.

To disable/prevent/forbid directory browsing/exploring using .htaccess:

  • Open your .htaccess file or create it if it is not exist yet
  • Look for Options Indexes command
  • If Options Indexes exists modify it to Options -Indexes or else add Options -Indexes as a new line
  • The directory browsing feature should be disable by now

   
   
   

 
Posted : 17/06/2011 12:25 am
Share:

× Close Menu