This forces the server to return a "403 Forbidden" error if no default index file is found, rather than listing the files.
On Apache servers, add this line to your .htaccess file in the root or image folder: Options -Indexes Use code with caution. Copied to clipboard parent directory index of private images updated