Restrict access to uploaded files to logged in users only (Nginx)
-
I can restrict users to see files when logged in through the posts page. But they still get a direct link to the file where it is stored in the wp-content/uploads/ directories.
Then, if they are logged out, they can still use that direct link to access the file. How do I prevent this?
I’m running wordpress on NginX, so it can’t be an htaccess thing. But I swear I’ve seen this done before, so it has to be possible. But I can’t figure it out.
So how do I get wordpress/nginx to STOP ‘the world’ from accessing my uploaded files, but still allow logged in users to access those files when they visit my posts?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Restrict access to uploaded files to logged in users only (Nginx)’ is closed to new replies.