Click to See Complete Forum and Search --> : Page Protection


dcjones
12-01-2003, 07:51 AM
Hi all,

I have a site which supplies a service via the net. Before a user can obtain the service they must go via clickbank to pay for the service.

My problem is that at the moment a user can/could go direct to the page offering the service bypassing the clickbank payment system.

How can I protect the page containg the service and only allow the page to load if the user has come from the clcikbank environment.


Any help would be good.

Kind regards, keep safe and well.

Dereck

pyro
12-01-2003, 08:24 AM
You are going to want to pass something from the payment page to your next page. A session would probably be best, but I'm assuming you probably can't do that. Basically, just something so you know it came from the correct page.

The problem with simple checking the referring URL is that the referring URL can be faked, and shouldn't be relied on.

dcjones
12-01-2003, 08:33 AM
Hi,

I can use sessions. but I am not to sure how to impliment one.

Can you please advise or give mr a sample.

Many thanks if you can or if you can't.

Dereck

pyro
12-01-2003, 08:35 AM
Take a look at http://us3.php.net/session and let me know if you need more help.