Turning off directory browsing?

Is it easy to selectively turn off directory browsing? Specifically, if someone (or something) tries to drill down, I’d like them to be presented with (for example) this:


instead of this:


Would disabling directory browsing be a simple matter of toggling something in .htaccess? (Oh, would that it were!) On the other hand, if it’s some Apache thing, then it’s going to be a little beyond me.

Options -indexes
in .htaccess
See also: