.htaccess to prevent all access to folder, subfolders and files etc


Hi guys,

i hope you can help as i am pulling my hair out!

i need to block off all access to the WP uploads directory using .htaccess - the trouble is all of the examples i find online don’t seem to work on CloudWays.

I tried several things but the one that should work:
Deny from all

seems to work OK and block files but only:
1)uploaded via FTP
2)not opened by the browser beforehand

if I upload something via the WP editor the file is fully accessible (using its direct link)

am i missing something obvious here? is there a way to tell htaccess all folders and files below this point are blocked?

thank you in advance for any help