homepage Welcome to WebmasterWorld Guest from 54.167.75.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Need page viewable only after payment
Preeminent




msg:3470952
 2:57 am on Oct 7, 2007 (gmt 0)

HI all,
I hope this is the right spot for this question. Here is what I am looking to do. I have it set up right now, so that once a visitor pays for their products through paypal,it takes them to a specific page with links for downloads of my clients' album. What I am wanting to do though is only make this page available when they pay and download their items and that is it. I do not want them to be able to just copy and paste the page url for later or save it in their favorites, so that they can come back anytime and download again. Is their an easy way to prohibit this? Is it possible to make a page not viewable after a certain period of time maybe? Thanks!

 

pelle




msg:3471338
 9:48 pm on Oct 7, 2007 (gmt 0)

Well, we are talking about security issues and money transactions, so what I would recommend is to manual email people when the paypal transaction has been confirmed.

another thing you can do if the product you are sellnig is some software, then you can use a service like emetrix to handle transactions and send a customer a speciffic code, then make a login database and when the customer logs in to their account they can download. does this sound confusing? :-)

Preeminent




msg:3471345
 9:54 pm on Oct 7, 2007 (gmt 0)

hmmm, yes the manual emailing is an option. Thank you for the reply!

DianellysMorato




msg:3477230
 3:39 pm on Oct 14, 2007 (gmt 0)

Paypal offers a redirect page option in its code, why not use that?

Dianellys Morato

Preeminent




msg:3478325
 11:15 pm on Oct 15, 2007 (gmt 0)

Yes, Well that is what I did with the paypal button, but it still brings the customer to a page that if they really wanted to, they could copy the page and go back to it anytime or let someone else know the address. I'm thinking that there isn't much of a way around it. Thanks.

defanjos




msg:3478328
 11:32 pm on Oct 15, 2007 (gmt 0)

If you use PHP or ASP, you could always pass a date variable from PayPal (if this is possible), and then look for it on the page.

For example, they pay on 10-10-2007, make the PayPal variable 10102007, and then on your landing page look for it (the comparison date on the landing would be set to "today's date"). If it is present, show the page, if not, redirect to home page.
This way the page would only be visible for the day they made the purchase on.

The only problem with this approach is if they buy too close to the end of the day they might not be able to see the page, but you could always make so it matches either today's or tomorrow's date.

kiwibrit




msg:3479092
 6:56 pm on Oct 16, 2007 (gmt 0)

Bottom line is that you can't stop a screen shot - so you cannot achieve the security you want.

rocknbil




msg:3479637
 10:02 am on Oct 17, 2007 (gmt 0)

One "right" way to do this . . . . or at least how I've done it . . . requires a little server side programming. It would make a great programming starter project in any language, but it's a little more technical than creating a web page.

Here is the crux of your problem: you need to protect the download files,[/url] not the page it's on. Let them bookmark it. Invite them to, no worries.

The short story: If you want to automate the process, you need to send a unique id to the payment processor, then on a successful response store the id somewhere (database, text file, whatever.) Then redirect or print a page to the browser that reads in where you've stored the unique code, and if a matching ID is found, it opens the download file from a hidden location and prints it to the browser, forcing the download. The URL of this response should use ONLY the unique ID:
yourdomain.com/payment_complete.cgi?tx_id=1234567890
or if you can use mod_rewrite,
yourdomain.com/1234567890

After 24 hours or a period of your choosing, you manually or with a cron job remove the codes from the text or regular database. Poof. The script that does the downloading can't find the ID, it can't produce the download.

The beauty of this approach is no one ever knows the "secret location" of the downloaded files, and you can control the access period.

For a non-automated solution, you can alter the logic to suit how you work. If you manually receive payments, you can just upload a list of codes, then email each of the customers the url in the format yourdomain.com/payment_complete.cgi?item_id=anything-you-want.

This boils it down to a small script that accepts tx_id, looks for a matching value in the "database," if found, produces the download, if not, produces a page, "invalid id."

Preeminent




msg:3480371
 12:40 am on Oct 18, 2007 (gmt 0)

thanks guys!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved