Replies: 2 comments 2 replies
-
You're dealing with static content with no server-side application to process the authentication request. This means that any code you add can be easily manipulated and will never be secure for this purpose. I'm not aware of any plugins. I would think the solution would be to encrypt the page content and decrypt it by JS script using the password passed in the URL parameter. But that leads to the problem that people will see garbage if they don't specify the password. Or maybe it will be possible to detect that the password is wrong and display something like "This post is password protected" instead. However, the whole idea does not sound perfect. I would prefer to hide such posts or combine these two approaches. It is still not going to be safe though and require you to implement or integrate some solution like this one. |
Beta Was this translation helpful? Give feedback.
-
I was surprised to discover that there is a blog engine theme that has such a feature. I wouldn't expect a similar feature here, but if you really need it, you can check the details of their implementation. |
Beta Was this translation helpful? Give feedback.
-
Checklist
How did you create the site?
Generated from
chirpy-starter
Description
I wnat to set password to a few of my posts, how can I do that?
Operations you have already tried
I had search a few and try to install some extensions and failed.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions