• Resolved Webdoone

    (@artus2000)


    There is any option to restrict access to the attachments for non logged in users?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tung Du

    (@dinhtungdu)

    @artus2000 Can you clarify your question a little bit: How do you want to restrict access to the attachments?

    Thread Starter Webdoone

    (@artus2000)

    Sure. When your plugin is enabled, access to the post and pages are restricted. But when someone have direct link to the attachment ex: “www.mydomain.com/wp-content/uploads/2020/01/myattachment.jpg” then access for this file is still possible.
    Thats why I am asking if it is possible to restrict access for direct attachment for non logged in users?

    Thread Starter Webdoone

    (@artus2000)

    I think I found a solution here: stackexchange.com

    But it would be amazing if you could incorporate that or similar solution into your plugin. Thanks for your time.

    Tung Du

    (@dinhtungdu)

    Glad that you found the solution!

    For your question:

    Short answer: No, RSA doesn’t support restrict the direct access to attachment.

    Long answer: Restricted Site Access hooks to parse_request to limit access to your site to visitors, so it won’t have any control over the direct link of the attachment which is processed directly by your webserver.

    Hope that helps! I’m marking this top as resolve. If you have any other question, please open a new topic, we’re happy to help!

    • This reply was modified 5 years ago by Tung Du.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Restrict Attachments’ is closed to new replies.