Title: Locking down files
Last modified: October 1, 2018

---

# Locking down files

 *  Resolved [aaron843](https://wordpress.org/support/users/aaron843/)
 * (@aaron843)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/locking-down-files/)
 * Hi there. I’ve been using this method to lock down files: [https://www.paidmembershipspro.com/locking-down-protecting-files-with-pmpro/](https://www.paidmembershipspro.com/locking-down-protecting-files-with-pmpro/)
 * For several years it worked. Then, a couple of years ago it stopped working (
   I wish I could remember the particular update). I inquired about it at the time
   and nobody was sure why it stopped.
 * Can anyone confirm that they’re able to get it to work or show that it still 
   does not?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [The API Guys](https://wordpress.org/support/users/pbarthmaier/)
 * (@pbarthmaier)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/locking-down-files/#post-10740346)
 * Hi Aaron,
 * Thanks for using Paid Memberships Pro. I can confirm that this recipe works in
   that I just helped someone with a concern about its use. But can you clarify 
   what you mean by “stopped working”? Are you saying that it’s not restricting 
   access or it’s not redirecting to the login or what? Did your hosting change?
   Specifically, was it working with Apache, but not with nginx?
 *  Thread Starter [aaron843](https://wordpress.org/support/users/aaron843/)
 * (@aaron843)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/locking-down-files/#post-10740357)
 * It is allowing users who are not logged in to access restricted files if they
   know the url. As far as I know, my host (1and1) still uses Apache.
 * My suspicion is that the getfile.php is not being activated, almost as if define(‘
   PMPRO_GETFILE_ENABLED’, true); was set to false instead. I’m not sure how to 
   test this.
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/locking-down-files/#post-10758852)
 * Thanks for the feedback [@aaron843](https://wordpress.org/support/users/aaron843/).
 * What you could test is add some custom code to your getfile.php to run on page
   load and see if that code runs. That way you know that the file is loading correctly.
 * Also, please note that the files need to be assigned to a post/page/thing that
   requires membership in order to restrict direct access to it. If these items 
   are simply loaded to your WordPress site, they won’t be restricted using this
   method.
 * If you still struggle with this, please feel free to open a support thread on
   [http://www.paidmembershipspro.com](http://www.paidmembershipspro.com) so we 
   may look into this further for you.
 * Thank you for your patience and understanding.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Locking down files’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

## Tags

 * [lock](https://wordpress.org/support/topic-tag/lock/)
 * [pmpro](https://wordpress.org/support/topic-tag/pmpro/)

 * 3 replies
 * 3 participants
 * Last reply from: [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/locking-down-files/#post-10758852)
 * Status: resolved