Results 1 to 2 of 2

Thread: How to Disable Directory Browsing on Linux Sites

  1. #1
    Join Date
    Nov 2009

    Default How to Disable Directory Browsing on Linux Sites

    To disable Directory Browsing on a Linux (cPanel) server, you'll need to create a .htaccess file in your 'public_html' directory with the following code inside:
    Options -Indexes
    If your site already has a .htaccess file in the public_html folder, then just add the code to the top line of that file.

  2. #2
    Join Date
    May 2013


    You can also add index.html into the folders where you dont want anyone to see its content. Or .htaccess with this line:

    deny from all

    it will ensure no one will be able to access the folder.

    I have this in my htaccess:

    RewriteEngine On
    Options +FollowSymLinks
    Options -Indexes

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts