Temporary link to the file at the time of the subscription

Discussion in 'Customization & add-ons' started by mironovs, Jan 14, 2013.

  1. mironovs

    mironovs New Member

    Joined:
    Jan 3, 2013
    Messages:
    17
    Hello.

    Help me please. How to make a temporary link to the file at the time of subscription to a unique link for each subscriber?

    For example: http://example.com/public/qwert123/file.txt

    Files should be downloaded without a password for direct link.

    Can I do this with aMember?

    Thank you.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Can you explain in more detail why you are doing this? there may be a plugin to handle it (personal content plugin)

    David
  3. mironovs

    mironovs New Member

    Joined:
    Jan 3, 2013
    Messages:
    17
    This is necessary for the user to download a file from a known link to it in the period of the subscription without a password.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  5. mironovs

    mironovs New Member

    Joined:
    Jan 3, 2013
    Messages:
    17
    Thank you. With this method, I will show the only links to the user? At the end of the subscription if the user remembers a link, it will be able to use it?
  6. mironovs

    mironovs New Member

    Joined:
    Jan 3, 2013
    Messages:
    17
    Requires two conditions:
    1. It is necessary that during the active subscription link worked, and after the end of the subscription link stopped working.
    2. Access to the link - without a password.
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can't protect link such way. This is just impossible. User will be able to write down link URL and use it later.
    So you have to protect that file.
  8. mironovs

    mironovs New Member

    Joined:
    Jan 3, 2013
    Messages:
    17
    And if you do so?
    1. Shared file, which should give users during the subscription, place in an open folder called md5 hash, example:
    http://host.com/1234567890/file
    2. During the beginning of subscription for the user to generate unique md5 hash, example: 0987654321 and give the customer a personal link like http://host.com/0987654321/file
    3. With mod-rewrite redirect all personal hash links to the physical file is in http://host.com/1234567890/file
    4. After the expiration of the subscription period, remove from the mod-rewrite hash personal user.
  9. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes this can be done as customization. I though you were talking about file which is located on different server.

Share This Page