Disable Hosting Directory Viewing Using .htaccess

Most of the Linux hosting have directory browsing enabled, this allow people to view the content of individual folder (Directory) in your web server. For security reason, you don’t want this happen, because you do not want people to look around your website structure and Hacker can easily find the¬†exploits in your files.

The easier way to disable the directory browsing is to create a .htaccess file with a line of code.

Options All -Indexes

 

Tagged: Tags:

Leave A Comment?