How to disable directory browsing using .htaccess? Security (cPanel) Host Duplex Staff For security purposes, we recommend that you disable directory browsing on your website so no one can see the files/folders of your website. You can disable Directory Browsing by adding this line to your .htaccess file. Options -Indexes Leave a Comment CancelComment Name Email Save my name, email, and website in this browser for the next time I comment. Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.