Skip to content

Instantly share code, notes, and snippets.

@ideadude
Last active April 17, 2021 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ideadude/12f48ddafc6a570f9bff5802754dd68e to your computer and use it in GitHub Desktop.
Save ideadude/12f48ddafc6a570f9bff5802754dd68e to your computer and use it in GitHub Desktop.
Locking down only PDF,DOC,DOCX,PPT,ZIP files with Paid Memberships Pro using NGINX
rewrite ^\/wp-content\/uploads\/(.*[\.pdf|\.doc|\.docx|\.ppt|\.zip])$ /wp-content/plugins/paid-memberships-pro/services/getfile.php last;
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Locking Down (Protecting) Files with PMPro" at Paid Memberships Pro here: https://www.paidmembershipspro.com/locking-down-protecting-files-with-pmpro/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment