View Categories

How to Disable Directory Browsing

🌐This guide is also available in Arabic
← اقرأ بالعربية

This is useful if you have a big list of files in a directory with no index file and you don’t want visitors to be able to browse through all of those.

How to Disable Directory Browsing #

Just add the following line in the site’s .htaccess file located in the root directory of your website.

Options -Indexes

If you are a Tarweig customer, we have you covered. By default, the directory listing is disabled on our servers.

Updated on 11/10/2026

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top