Hacker News new | ask | show | jobs
by S04dKHzrKT 586 days ago
When you have a site with a fixed, tiny amount of users, I'd opt for HTTP basic auth (via HTTPS). Whether you're using nginx, Traefik, Caddy, etc..., it's very easy to setup. If you're using something like Cloudflare Pages, I would guess you could setup a worker to handle it for you (though I'm not familiar enough with workers to be sure).
1 comments

You're right; its easy enough with Cloudflare Workers. They have a sample that is pretty decent:

https://developers.cloudflare.com/workers/examples/basic-aut...