# Using Astro for a pay walled blog? A family friend is trying to make a blog with a paywall and I figured it would be a good portfolio project to help them. Although I am still pretty new to astro I really love the dev experience and have used it for some small projects and it seems like the ideal fit for a blog. But with the wrinkle of a paywall, user login, and mailing list to keep users up to date with new posts, does this move the project out of Astro's wheelhouse? Sorry if this is a noobish question ## Answer 1 Sure, you could still statically render most pages on the site while using middleware to validate the user: https://docs.astro.build/en/guides/middleware/. You can use Astro's SSR and middleware to create an authorized/paywall only pages. ## Answer 2 I am new to Astro, but not dev. And I’ve primarily done backend. I’ve thought about this but haven’t tried it yet . If you were willing to take on something new and interesting look at Cloudflare workers or some of the other serverless systems. The tldr is that for the protected routes, Cloudflare or whatever serverless provider could intercept the request to check a JWT. Then you would also need a way to log someone in against a database but something https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/ There’s also https://www.reddit.com/r/Supabase/s/1AEYzLsjYd