You can just put a blank file named index.html in that directory.

A “more correct” way is to put a file named .htaccess in that directory consisting of only this line. Options -indexes What is especially nice about doing it this way all subdirectories of that directory also get their directory listings turned off.

You could then turn on indexes for one of those sub-directories. Just by making a .htaccess file in that directory with: Options +indexes

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

VPS Game Servers and Dedicated Servers

Bodhost VPS Hosting packages can host game servers depending upon the configuration of the game…

Install Fail2ban on Ubuntu

This guide explains how to install Fail2ban on Ubuntu 22.04. A strong intrusion prevention software…

How to add FTP Account in Plesk

How to add FTP Account in Plesk

You’ll learn how to add an FTP account in Plesk for each user in this…