Ask a Question related to Macromedia ColdFusion, Design and Development.
-
hermes980 #1
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
-
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... -
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... -
protect
Hi guys and girls. How can I make to protect my director files and to avoid them to be modified? See yaŽ Alfredo -
#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... -
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... -
Stressed_Simon #2
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
-
hermes980 #3
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
-
shawnwindler #4
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
-
hermes980 #5
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
-
hermes980 #6
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



Reply With Quote

