8
11 Comments

How does the MAKE: Bootstrapper's Handbook paywall work?

Does anyone know how @levelsio does the paywall and text obfuscation on makebook.io's?

I'd love to implement something similar on a small project I'm starting. I'm particularly interested in how to 'unlock' live content once a purchase is made.

posted to Icon for group Growth
Growth
on May 14, 2020
  1. 3

    He actually open sourced how he did it. Here's a link to the tweet & code: https://twitter.com/levelsio/status/978243288707710981?s=20

  2. 2

    Just from a quick look, the text is obfuscated before it gets to the 'front-end' - likely so you can't read the whole book from the network tab.

    It's difficult to guess the exact process without buying it myself, but setting an authorization header, cookie, etc. after a successful stripe purchase and rerequesting the content immediately would work if you want the whole text readable on the landing page. I think it's pretty likely you're just emailed a link to read/download the full text after a purchase.

    As far as the obfuscation process, it's likely at some point they found every non whitespace character and had it replaced with a random letter. It's obfuscated the same for everyone so is likely just part of the landing pages html and not dynamic content at all!

    1. 1

      Ah that's actually a really good way to think about it! It makes total sense that the obfuscation wouldn't be variable.

      Thanks for the hints - they're really helpful

  3. 2

    Just thinking it through; if all the text is returned from the backend, I cannot imagine it to difficult to obfuscate with some library (some cipher).

    There must be some kind of cookie indicating a paying user if it does not require any logging in.

    1. 1

      A cookie makes sense but how would you reissue a cookie if the cache was cleared?

      1. 1

        That's a very good point. Have you purchased the book? I'm curious what the full flow is.

        I know a friend who has a paid vs. not paid version for their application, there isn't an official login or registration. He created an input for someone to put their Gumroad license key and then it validates against a database. So there is some backend work going on, but it's not a full-bodied API or anything.

        1. 1

          I bought it and I got a unique URL that I could use to access the book. So no cookie is needed, and I can access the book on different devices.

        2. 1

          I've not purchased it, no.

          A gumroad license key verfication system seems like a pretty easy way to do it. I suppose you could also do it on email and verify against a gumroad sales list. People could share the same email but that's the same as a license key.

  4. 1

    You may want to move this to the Developers group, just fyi. Sorry that I can't help with this one :/

  5. 1

    This comment was deleted 3 years ago.

    1. 1

      When you purchase a copy are you directed to a PDF or a landing page with the content? I'm really interested in the flow of purchasing

      Presumably you also have a way of accessing the book again if you deleted a locally stored version?

      1. 1

        This comment was deleted 3 years ago.

Trending on Indie Hackers
I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 139 comments “This contract looked normal - but could cost millions” User Avatar 54 comments 👉 The most expensive contract mistakes don’t feel risky User Avatar 41 comments The indie maker's dilemma: 2 months in, 700 downloads, and I'm stuck User Avatar 38 comments I spent weeks building a food decision tool instead of something useful User Avatar 28 comments I just launched a browser API built for AI agents and LLMs User Avatar 23 comments