Portal Home > Knowledgebase > Website > How do I turn off directory browsing?


How do I turn off directory browsing?




You can control your directory browsing function via .htaccess files.

Just create a text file called "htaccess.txt" in a text editor. Then copy the following line into your htaccess.txt file:

Options -Indexes

Save the file and upload it to the remote directory you want to turn off directory browsing in. Once you have uploaded the htaccess.txt file, rename it name to be ".htaccess".

You have now turned off directory browsing.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read