• Resolved hokua

    (@hokua)


    Hello,

    I’m using the free version of Prevent Direct Access. We’re using WP Engine and I have asked them to add the following rules to the NGINX server:

    rewrite wp-content/uploads/_pda(\/[A-Za-z0-9_@.\/&+-]+)+\.([A-Za-z0-9_@.\/&+-]+)$ "/index.php?pda_v3_pf=$1&is_direct_access=true&file_type=$2" last;
    
    rewrite private/([a-zA-Z0-9-_.]+)$ "/index.php?pda_v3_pf=$1" last;

    I’m told the rules were added, saved, and then they regenerated the NGINX Config. I am told they cannot restart the NGINX server.

    I’m able to load files using the protected links, but I am getting “Page Not Found” when trying to load the private download link. I then tried adding the PDA Gold version 3.0 and above redirect rules from the How to make Prevent Direct Access work on WP Engine page. I’m still unable to load private download links.

    I reached back out to WP Engine and am told that NGINX rules will overrule redirects, so I had the NGINX rules removed. I still cannot load a private download link.

    I have cleared server and browser cache serveral times. Still no luck.

    Our goal is to be able to share these private URLs with specific front facing users of the site. We just need the URLs to be private.

    Am I missing a step to get these private download links to work?

    • This topic was modified 1 year, 1 month ago by hokua.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author BWPS Team

    (@buildwps)

    Hi @hokua ,

    Thank you for reaching out to us.

    To assist you better, could you provide us some information please?

    1. A sample URL for us to take a look.
    2. To clarify, everyone can access the private download link. Its feature is to prevent access using Download limits or Downloads expiry.

    References: https://preventdirectaccess.com/docs/original-vs-private-download-links/

    Thread Starter hokua

    (@hokua)

    Hi, and thanks for your response. I discovered the issue accidentally while troubleshooting something else. It had to do with an undefined function call in functions.php that was intended to send visitors to the 404 page.

    All is working as expected now.

    Plugin Author BWPS Team

    (@buildwps)

    Hello @hokua,

    Thank you for letting us know- we’re glad that everything is working now.

    Please feel free to reach us by email at support(at)wpfolio.com if you need further assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Private Download Links on NGINX’ is closed to new replies.