I'd like to configure my Apache server similar to a working configuration I noticed on the Farming Simulator website. They use CSS background images for their main navigation bar but if you try to view an image with a direct link (example) it returns a 403 Forbidden error. I know how to allow/deny indexes for directories, but not how to deny access to files within those directories.
Does anyone know how I'd go about configuring .htaccess to work like this?
I found a similar question but it doesn't really answer mine.