Disable directory listings with 404 instead of 403

I’ve disabled directory listings like so…

Options -Indexes

When I try and access a directory like this:-


I get a 403 Forbidden response.

However, I want a 404 Not Found response, so hackers can’t guess my directory structure so easily. How would I do that?


Leave a Reply