Hi, I used this code to prevent downloading the attachment. It is working fine for the plugin download links.
If somebody somehow guesses the regular download link from the document in the media library it is still accessible without logging in.
Is there a way to prevent that?
Thank you,
Han