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

Started by Xhanch Studio, June 16, 2011, 06:25:50 PM

previous topic - next topic
Go Down

Xhanch Studio

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


   
   
   
Best Regards,
Susanto B.Sc
----------------------------------------------------------------------------
Web development services, WordPress plugin and theme development, PSD to XHTML conversion - http://xhanch.com
Read free manga online - http://authrone.com

Go Up