Skip to content

Instantly share code, notes, and snippets.

@JarrydLong
Forked from ideadude/pmpro_nginx.conf
Created January 9, 2025 11:15
Show Gist options
  • Save JarrydLong/0a876dfa0880daf8c54c9f5efd368822 to your computer and use it in GitHub Desktop.
Save JarrydLong/0a876dfa0880daf8c54c9f5efd368822 to your computer and use it in GitHub Desktop.
NGINX rule to lock down files with Paid Memberships Pro
location ^~ /wp-content/uploads/ {
rewrite ^/wp-content/uploads/(.*)$ /wp-content/plugins/paid-memberships-pro/services/getfile.php?file=$1 last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment