I built a website to share handwritten notes and other course materials for college students, and it's hosted for free on Netlify using just HTML, CSS, and JavaScript (with some AI help). I'm looking to implement a subscription model that requires users to log in and pay before accessing the content. However, I'm facing several challenges because I don't have a backend server, database, or payment gateway set up. I need advice on:
- Implementing user login and authentication
- Storing subscriber information securely
- Preventing unpaid users from accessing the content
- Managing subscriptions and payment processes
Does Netlify offer any built-in solutions for this, or should I look into third-party services? Any tutorials or tool recommendations for someone who wants to avoid building a full backend would be greatly appreciated!
4 Answers
It sounds like you might want to consider using a platform like Patreon or OnlyFans for your content. They handle subscriptions pretty well!
But how are his students supposed to explain subscriptions from OnlyFans to their parents?! That's a tough sell!
Check out Clerk. They offer subscription billing and authentication that you might find helpful! Here's a link to their blog for more info: https://clerk.com/blog/add-subscriptions-to-your-saas-with-clerk-billing
Make sure not to rely on AI for handling user data. You could end up in serious trouble if there's a data breach. Better be safe than sorry!
Static sites usually expose all data to users, making it tough to protect content. One option is to use Supabase for user authentication and data storage without needing a separate backend; it acts like one. However, setting up row-level security could be a bit complex. You might find it easier to just create a Node.js API server for authentication and manage your database that way!

Yeah, that could work! Just direct users to Patreon for payments. It's a solid option.