Random link name

Discussion in 'PHP' started by phpkid00, Aug 27, 2009.

  1. #1
    Does anyone have a solution for sending visitors to a download page after they purchase through PayPal?

    I want each download link to expire after 20 minutes or only be usable by one person.

    Example:

    Buyer makes the purchase and is redirected to:

    www.mysite.com/secure/download.php

    download.php creates a secure RANDOM link for the file "product.ZIP"

    Then that random link expires in 20 minutes or only works once. Either way would work.

    What do you guys do for your digital paypal products? I'm hoping you dont use a re-usable static link that buyers can share with other people or links that can be linked from other sites to steal your product...right?

    So what do you guys do? I can't afford to spend any money I need a free solution.

    Oh...and I don't want to use payloadz.com or any others because I'm actually using Google Checkout AND PayPal and I would prefer to just use a php script for this.
     
    phpkid00, Aug 27, 2009 IP
  2. SHOwnsYou

    SHOwnsYou Peon

    Messages:
    209
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Because I don't exactly know how to do what you're asking, I am just spit-balling, hoping to give you some ideas or help you figure it out.

    If they make payment on your site, you could set a 20 minute cookie that must be present for the download page to load.

    Then you can use the download page to serve the file to the customer.

    This will provide some degree of limited access for your customers.
     
    SHOwnsYou, Aug 27, 2009 IP
  3. ipr22

    ipr22 Peon

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can setup a database with linkname, expirationtime and run like that. You could also do cookies/sessions but that's less reliable.
     
    ipr22, Aug 27, 2009 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    Well for my digital downloads selling i use this script http://latestgoods.net/ its the best and keeps the products safer
     
    Bohra, Aug 28, 2009 IP
  5. phpkid00

    phpkid00 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Serious? No one has or knows of a script to simply change the url name after each download or to create expiring links?

    I'm using Google Checkout so latestgoods.com won't work.

    There has to be a way...lots of people use Google Checkout...wonder what they do to protect their download links :confused:
     
    phpkid00, Aug 28, 2009 IP
  6. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #6
    What about a custom solution?
     
    crivion, Aug 28, 2009 IP
  7. SHOwnsYou

    SHOwnsYou Peon

    Messages:
    209
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    After I read this yesterday, I figured out how to build one.

    The one I built allows two downloads per purchase. It does not show the file location or the file name on the server. It uses two unique identifiers and counts the download numbers so that person can only get it twice.
     
    SHOwnsYou, Aug 28, 2009 IP
  8. phpkid00

    phpkid00 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    disposablelinks.com creates expiring links and locks them but only allows 1 link on the free version.

    so that won't work.

    still looking. PM me if you find anything it's driving me crazy.
     
    Last edited: Aug 28, 2009
    phpkid00, Aug 28, 2009 IP