[Python] How to Prevent Screenshots and Screen Recording on a Payment Page (Django + Stripe...

Discussão em 'Python' iniciado por Stack, Março 10, 2025.

  1. Stack

    Stack Membro Participativo

    I am working on a Django-based e-commerce website with Stripe Checkout for payments. I want to prevent users from taking screenshots or recording their screen on the payment page.

    ** What I Am Doing**

    • Users are redirected to Stripe Checkout via a Django view:
      def checkout(request):
      session = stripe.checkout.Session.create(
      payment_method_types=['card'],
      line_items=[{"price_data": {...}, "quantity": 1}],
      mode='payment',
      success_url="https://yourdomain.com/success/",
      cancel_url="https://yourdomain.com/cancel/",
      )
      return redirect(session.url)
    • The checkout URL looks like:
      https://checkout.stripe.com/c/pay/cs_test_a1iAFc5as6...
    ** What I Want to Achieve**


    Block screenshots (PrtSc, Snipping Tool, etc.)
    Prevent screen recording software
    Stop screen-sharing via Zoom, Google Meet, etc.

    ** My Questions**

    1. How can I prevent screenshots and screen recording?
    2. Is this possible in a web browser, or only in mobile apps?
    3. What is the most secure way to implement this?

    Any guidance would be greatly appreciated!

    Continue reading...

Compartilhe esta Página