4 ms·
hmmm, I phrased the question incorrectly I think. Bear with me, I may not have the right vocabulary for this: Let's say I have a blog post. I want it scrambled
by dhruvkar 6y ago
hmmm, I phrased the question incorrectly I think. Bear with me, I may not have the right vocabulary for this:
Let's say I have a blog post. I want it scrambled (encrypted) unless a password is entered on the client side so it can be read. I would give out the password to specific people only, who'd be able to read it.
Could an SSL certificate be used for that?
- Tomte 6y agoNo, you'd probably need some Javascript. But why not this: publish the blog post the normal way and configure the web server to only serve it to people with a proper username/password (HTTP Basic Authentication). All browsers and web servers let you do that. For Apache, see this example: https://httpd.apache.org/docs/current/howto/htaccess.html#auth https://httpd.apache.org/docs/current/howto/htaccess.html#au...
- dhruvkar 6y agowant it for a static site, no access to the backend. I dont want to run a full blown website, just want access control. possible?
- Tomte 6y agoSure, if your web hoster allows .htaccess files (most do). You just put that file next to your HTML files.
- dhruvkar 6y agoHave you ever hosted something github pages or netlify? Those are the situations I'm talking about, where an htaccess or any server side access control wouldn't work.
- Tomte 6y agoNo, I haven't. But since you did not tell anyone about that requirement, how was I to guess it?
- dhruvkar 6y agoYou're right. I assumed mentioning static site with Hugo or Jekyll was enough. To clarify, it would be a static site with hosting on something like netlify or github or gitlab pages, where you don't have access to the server.