How can I restrict wp-content/uploads to members only?

Hi there, I have a WP site that shoves everything into wp-content/uploads, and I’d like to restrict that folder or subset of folders to logged-in members only.

Is this possible with nginx redirects? If so, how do I do it? If not, what are my options for making my files only accessible to logged in members?


Hi @Qorgyle :wave:

Welcome to the Kinsta Community!

It should be possible to achieve this by using a plugin or making some modifications to Nginx. For example, you can check out this plugin: Easy Digital Downloads Tutorial for WordPress (In-Depth).

For the Nginx configuration, please contact our Support team via chat for the best assistance.