• Hello;

    Anyone can guide me how I can create a url security that is not accessible until users pay for the service they want first?

    I have one page listing all my products. Each product has its own ‘buy now’ button that routes to Stripe. Once payment is approved, Stripe routes back to a page url specific for the product the user bought.

    How can I prevent users from accessing that page directly by simply typing in the url and thus bypassing Stripe?

    Any suggestions are highly welcome.

    Thank you.

    Lode

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    For initial access, you could simply verify the request’s referer URL. For return access, you need some way to keep track of what someone is allowed to access. You might be able to query for a user’s paid orders for example. Or maintain an independent list in user meta. Update the list as part of processing a successful payment.

    This all could likely be done by modifying the template used to view a page’s content.

    Thread Starter ndjworldnews

    (@ndjworldnews)

    @bcworkz Thanks for the response.

    As it turns out; the credit card approval company I use automatically adds a long string of characters to the existing url before routing to the page after payment approval. For now that’s good enough.

    That will at least offer some protection whilst I study and try to implement one of your suggestions.

    Thanks again; have a great day.

    Lode

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘url security for paid for pages’ is closed to new replies.