Protected pages behavior and protected files question

Discussion in 'aMember Pro v.4' started by boerner, Dec 1, 2011.

  1. boerner

    boerner New Member

    Joined:
    Oct 25, 2011
    Messages:
    13
    When the user tries to access a protected FILE they get redirected to the login page. However, if they try to access a protected PAGE they get the message "You must be authorized to access this area", no login redirect and no login link so a dead end. Can this behavior for protected PAGES be changed to redirect to the login page?

    Also, there is an upload limit of 4M for protected files. I want to protect a very large zip file so I uploaded it by ftp. However, the file protection browser only looks at files uploaded through amember, it cannot see files within the directory structure. Can this be changed to allow protection of files that were uploaded to the server via ftp?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    http://bt.amember.com/issues/511
    http://bt.amember.com/issues/512
    both issues are high priority, thank you for reporting!

    There is a workaround for second problem (which was typical solution in v3):
    - create a separate folder for your file, say /protected-file/
    - upload your file into the folder, say url will be /protected-file/file.zip
    - aMember CP -> Manage Content -> Folders : protect the /protected-file/ folder using new-rewrite, but set this record to be "Hidden"
    - aMember CP -> Manage Content -> Links : add link to http://www.yoursite.com/protected-file/file.zip with desired title. It will be displayed in members area
    There is additional advantage that file will be served by Apache webserver, and not by PHP script, which is important for big files.
  3. boerner

    boerner New Member

    Joined:
    Oct 25, 2011
    Messages:
    13
    I did this already, actually made a protected page with a link on it rather than a protected link. I did the same for a folder with a lot of files to download, too, where the link option would be tedious. Hence the reason for my first request, to redirect the page request to a login page.
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    May be just put an index.html file into the protected folder? Then everything will work as expected.
  5. boernerrha

    boernerrha aMember Pro Customer

    Joined:
    Nov 16, 2011
    Messages:
    28
    I made an index.html by saving the Amember page, worked like a charm. Thanks.

Share This Page