top | item 16730437

Ask HN: How to create gated static HTML page?

1 points| mcbetz | 8 years ago | reply

I do have a static HTML site that I want to make accessible via user/password authentification. I have at least 500 private users. Which options do I have apart from Netlify Pro's Identification (99$+/month), using Lamba on S3 (0) or fiddling with NGINX/Apache Basic HTTP Auth?

Setting up a full Laravel seems to be overkill as well. Hosted solution with custom HTML would be best, but any framework (PHP, Python, JS) would work too.

(0) (https://hackernoon.com/serverless-password-protecting-a-static-website-in-an-aws-s3-bucket-bfaaa01b8666)

5 comments

order
[+] johnhenry|8 years ago|reply
Looks like the only way to do this is to proxy all request to the static server through an authentication server, and you could write the authentication server in any language.

[authentication server] -> [static server]

Unfortunately, this kind of defeats the purpose of having a static server.

[+] noemit|8 years ago|reply
I would use Wordpress