Protecting a large amount of files

Discussion in 'Setting-up protection' started by chucknorris, Feb 25, 2020.

  1. chucknorris

    chucknorris aMember Pro Customer

    Joined:
    May 19, 2011
    Messages:
    44
    Hello,

    Is there a way for aMember to protect a large amount of files (thousands) without having to add each individual file manually?

    If we protect a folder, it protects access to the folder, but any non-logged in user that has the link can download directly from the server.

    How can we protect the folders "and" the files within them at the same time?

    Any suggestions?

    Thank you
  2. chucknorris

    chucknorris aMember Pro Customer

    Joined:
    May 19, 2011
    Messages:
    44
    From 2011, Alexander said:
    However, after I protect a folder, the individual files within that folder begin downloading immediately if I try to access it from a non-logged in browser session...

    I'm using the "new rewrite" method.
    Last edited: Feb 25, 2020
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,191
    Hello,

    There is several possible reason:
    - You use NGINX as webserver
    NGINX require add some rules to config manually to protect folder:
    https://www.amember.com/docs/Frequently_Asked_Questions#How_to_protect_folder_on_NGINX
    - You have CACHE on your server that return these files from cache.
    You need to disable this CACHE

    Feel free to contact us in helpdesk and we will check your installation and find exact reason of issue with folder protection
    on your setup:
    https://www.amember.com/support

    Best Regards.

Share This Page