|
If you are on a Cpanel server, there is a setting within the control panel to disable a directory listing. If you use that setting, you can ensure the folks can't browse your directories and only through the proper links they'll know the file name/image.
If not using CPanel, you can always create your own .htaccess. Keep it in the top directory - above your html directory ( so that its settings are right across all the below subfolders )
Put a .htaccess file in your /home or equivalent directory.
In it put
Options -Indexes
That will stop directory viewing when no index file is present.
Warm Regards,
|