PayPal and Protect Download

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default PayPal and Protect Download

    Hi all,

    I would like to setup a page where a customer can download a file they buy
    using PayPal. But, I want this page to be protected from them going back,
    sending the link to my download page to others, etc. I suppose I can give them
    a username and password, but then how do I make it where if they login they can
    only login once to download the file?

    Also, is there a simple way to just hide the download pages link information
    or make a temporary link? What have others done to accomplish protecting their
    downloadable products?

    Thanks in advance!

    hermes980 Guest

  2. Similar Questions and Discussions

    1. protect dcr
      Hi, As far as protection is concerned it seems many people use java to open a dcr in its own window without a toolbar to keep people from saving...
    2. protect .dir
      Hi I have created projector starting from a .dir empty file to which I add several dir that they compose my cd and several cts external. Creating...
    3. protect
      Hi guys and girls. How can I make to protect my director files and to avoid them to be modified? See yaŽ Alfredo
    4. #25471 [NEW]: The PHP Documentation download page does not show any download in Mozilla
      From: mahesh dot chandrasekar at icici-infotech dot com Operating system: All PHP version: Irrelevant PHP Bug Type: *General...
    5. Protect local data files from download?
      Just make sure that the extension of the file is unkown to IIS. Give the file a name like data.xyz or something. Then IIS will never serve it up...
  3. #2

    Default Re: PayPal and Protect Download

    Hold the files in a folder outside of your webroot and use cfcontent to deliver them the content with some provisos, ie logged in, certain IP. Anything you like!
    Stressed_Simon Guest

  4. #3

    Default Re: PayPal and Protect Download

    Ah,

    So if I used this code:
    How would I retrieve .zip files?

    <cfif fileexists("#secureroot#\#filename#")>
    <cfheader name="Content-Disposition" value="filename=somefilename">
    <cfcontent file="#secureroot#\#filename#" deletefile="No" type="#mimetype#">
    <cfelse>
    <cfoutput>ERROR: Could not find - #filename# </cfoutput>
    </cfif>

    hermes980 Guest

  5. #4

    Default Re: PayPal and Protect Download

    If you decide to go the username/password route, I'd think it would be pretty
    simple to allow them to enter only once.

    Generate a random username/password combination.
    Store the username/password in a database
    Give this combination to the user.
    When they login and download the file, mark that they have logged
    in/downloaded the file in the database for that username/password.
    Then don't allow that username/password combination to log in again (based on
    the field for logged in/downloaded).

    - If they don't successfully download the file, they may be locked out from
    trying again though.
    - What is to prevent them from simply sending the file (that they downloaded)
    to a friend?

    Hope that helps.

    - Shawn

    shawnwindler Guest

  6. #5

    Default Re: PayPal and Protect Download

    To illustrate it further I am planning the following:

    1) description of item with paypal button with a link to a
    2) .cfm page that has a cflocation tag that sends the user to a
    3) cfcontent page with the file outside the webroot

    Would this sufficiently prevent the user from coming back using the link to
    the .cfm page with the cflocation tag to download the file? OR is step 2
    unecessary since the paypal button link would send them to the cflocation tag
    and so forth....

    I guess the key to protecting it is the cfcontent page.

    hermes980 Guest

  7. #6

    Default Re: PayPal and Protect Download

    Shawn,

    You are right. I guess if they just copy the file they can send it along. Then I guess cfcontent is my best chance of preventing basic hacking...

    What do most people do in my situation?
    hermes980 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139