Last active
February 8, 2022 20:36
-
-
Save ideadude/075abe2de0f85c6510a0fdb14ddd4648 to your computer and use it in GitHub Desktop.
Locking down only PDF,DOC,DOCX,PPT,ZIP files with Paid Memberships Pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteBase / | |
RewriteRule ^wp-content/uploads/.*(\.pdf|\.doc|\.docx|\.ppt|\.zip)$ /wp-content/plugins/paid-memberships-pro/services/getfile.php [L] |
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
For more info see: https://www.paidmembershipspro.com/locking-down-protecting-files-with-pmpro/