Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Protected areas

  • #8296
    Avatar photo[anonymous]

    Hi, is it possible to created protected areas of a Publii website? Area that is that cannot be viewed without the user logging in first? Thanks.

    #8314
    Avatar photo[anonymous]

    Hi,

    Such functionality is hard to achieve with static websites. Publii has no support for such feature.

    #8339
    Avatar photo[anonymous]

    Look into Authorizer.dev and octauthent.com.

    Authorizer is open-source, self-hosted and can be deployed on Railway very easily. octauthent is a freemium service.

    I’ve tried Authorizer, and it works with Publii. The developer of the project is very friendly and responsive on Discord.

    #8341
    Avatar photo[anonymous]
    [anonymous] wrote:

    Look into Authorizer.dev and octauthent.com.

    Authorizer is open-source, self-hosted and can be deployed on Railway very easily. octauthent is a freemium service.

    I’ve tried Authorizer, and it works with Publii. The developer of the project is very friendly and responsive on Discord.

    It helped me to protect my personal decentralized website, thank you very much!
    Before, I used pure Javascript to try to protect the decentralized page a bit, but obviously, anyone with programming knowledge could access it.
    Now with your solution I am more protected!

    #8342
    Avatar photo[anonymous]

    Thanks.

    #9436
    Avatar photo[anonymous]

    Glad to help! Just wanted to share three more options:

    MojoAuth (paid option): https://mojoauth.com/docs/guides/html-and-js/

    Userbase (freemium, paid version can connect to Stripe): https://userbase.com/docs/sdk/

    Web Monetization: It can be implemented on static sites, and there are some interesting demos on gated content: https://webmonetization.org/docs/exclusive-content. That said, it’s not super well known yet, and the only provider at the moment, Coil, just got discontinued. That said, the Interledger Foundation is continuing work on this web standard: https://interledger.org/

    #10960
    Avatar photo[anonymous]

    Hello,

    I was looking for a similar feature and finally found a solution. I’m explaining it here because it might be useful for someone else too.

    I actually found two solutions:

    1) The first was to use Netlify and the “Identity” function: https://docs.netlify.com/security/secure-access-to-sites/identity/
    The problem was that I didn’t want to pay Netlify just for that. The free version is sufficient for my purposes.

    2) Then, as part of a webshop project, I used Infomaniak for hosting and discovered that they had a user management system on the server (management with encrypted password). => https://www.infomaniak.com/en/support/faq/68/password-protect-a-site-folder

    I now host a Publii site with the “Documentation” theme with restricted access using FTP.

    The next step for me will be to automate this to give access when someone is added to my database.

    I also imagine that other hosts offer the same thing.