I have a custom folder inside of wp-content where I'm uploading media. I need to block direct access to this folder unless the user is logged in.
Is there any way to do this? I've searched but have only come up with blocking directory browsing using .htaccess.