Nginx does not enable autoindex by default, but if you have it on, turn it off.
location /private-images/ autoindex off; deny all; allow 192.168.1.100; # example whitelist return 403; parent directory index of private images install
I can provide the specific commands or scripts once I know your environment. Nginx does not enable autoindex by default, but
The most effective way to prevent private images from being listed is to disable the auto-indexing feature at the server level. Apache Servers Options -Indexes or the main server configuration file. Nginx Servers : In your server block configuration, set autoindex off; for the directory containing private images. Lighttpd Servers dir-listing.activate = "disable" is set in your dirlisting.conf IIS (Windows) but if you have it on
(Only accessible locally.)