Using the following snippet, you will be able to secure your uploads directory in WordPress.
1 2 3 4 5 6 7 8 | <Files ~ ".*..*"> Order Allow,Deny Deny from all </Files> <FilesMatch ".(jpg|jpeg|jpe|gif|png|tif|tiff)$"> Order Deny,Allow Allow from all </FilesMatch> |
Snippet Source/Credit: Jeff Starr