• Resolved Paul

    (@pawelszroeder)


    It doesn’t work, the protected file is still visible for everyone, logged-in logged-out etc.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author BWPS Team

    (@buildwps)

    Hello Paul,

    Thank you for reaching our support! I’d be glad to help you with your concerns in any way I can! I would appreciate it if you can please let me know if you have activated the Plugin by going to the Plugin.

    I would appreciate it if you also want to drop us an email at hello(at)preventdirectaccess.com?so that our team can provide support promptly,?@pawelszroeder.

    Cheers,
    Muhammad

    Same here, protected a few test images but still viewable using the direct link (_pda). Cleared my browser cache, no caching on the site. Image is visible… Also, the ‘No Access’ re-direct does not work.

    Plugin Author BWPS Team

    (@buildwps)

    Hi?@jvalks ,

    Thank you for reaching our support!

    We would recommend to try Basic Troubleshooting if you haven’t done that already.

    Thanks again for reaching out to our support and let us know if you have any more questions. For faster and more customized response from our team, please feel free to drop us an email at support(at)wpfolio.com!

    Cheers

    Thread Starter Paul

    (@pawelszroeder)

    Ok, there was a problem with server, it was Nginx… After edit conf it works, thanks!

    Plugin Author BWPS Team

    (@buildwps)

    Hi @pawelszroeder ,

    Thank you for letting us know. We’re glad that your issue has been resolved.

    Please feel free to reach back if you need- happy to help always!

    Thread Starter Paul

    (@pawelszroeder)

    Hi, I’ve added these rules:

    server {
    
        location / {
         ...
        }
    
       #Put our rewrite rules here, i.e.
       rewrite wp-content/uploads(/_pda/.*\.\w+)$ "/index.php?pda_v3_pf=$1" last;
       rewrite private/([a-zA-Z0-9-_]+)$ "/index.php?pda_v3_pf=$1&pdav3_rexypo=ymerexy" last;
    }

    Could you explain how does it work?
    I set acces to protected files only for loggged-in users.
    Protected files are available for users with urls like:

    domain.com/wp-content/uploads/_pda/file.pdf

    but I see that when I use url like:

    domain.com/index.php?pda_v3_pf=/_pda/file.pdf
    it also works (only for logged-in users)

    I don’t see any rewrite.

    Why? Am I doing something wrong?

    • This reply was modified 1 year, 9 months ago by Paul.
    • This reply was modified 1 year, 9 months ago by Paul.
    Plugin Author BWPS Team

    (@buildwps)

    Hi Paul,

    Sorry for the late response.

    Similarly, The Rewrite Rule will change the original link to the protected links are changed as well:

    • Default URL:?domain.com/wp-content/uploads/_pda/file.pdf
    • Raw URL:?domain.com/index.php?pda_v3_pf=/_pda/file.pdf

    You can understand default URL, and raw URL are both link protection. But the default URL has better structure.

    As you said, the Raw URL is working so I think you are enabling Keep Raw URLs.

    You have to block access to our?_pda?folder to prevent your user access to domain.com/wp-content/uploads/_pda/file.pdf

    References: https://preventdirectaccess.com/docs/pda-rewrite-rules/#pda-folder

    Thanks again for reaching out to our support and let us know if you have any more questions. For faster and more customized response from our team, please feel free to drop us an email at support(at)wpfolio.com!





Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Doesn’t work’ is closed to new replies.