Limit file downloads to logged in users (WP + Nginx)
Question
I am looking for a way to restrict access to mp3 files on my site to logged in users only.
The approach listed here sounds pretty much like what I need:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} ^.*(mp3|m4a)$
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
RewriteRule . - [R=403,L]
except how would I convert these .htaccess rules to nginx?
0
2 years
2020-12-18T07:11:12-05:00
2020-12-18T07:11:12-05:00 0 Answers
9 views
0
Leave an answer