Prevent Access to a Specific File - To restrict access to a specific file, add the following code block and edit the file name mysecretfile.jpg? with the name of the file that you wish to protect.
# prevent viewing of a specific file
<files mysecretfile.jpg>
order allow,deny
deny from all
</files>