TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to create gated static HTML page?

1 pointsby mcbetzabout 7 years ago
I do have a static HTML site that I want to make accessible via user&#x2F;password authentification. I have at least 500 private users. Which options do I have apart from Netlify Pro&#x27;s Identification (99$+&#x2F;month), using Lamba on S3 (0) or fiddling with NGINX&#x2F;Apache Basic HTTP Auth?<p>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.<p>(0) (https:&#x2F;&#x2F;hackernoon.com&#x2F;serverless-password-protecting-a-static-website-in-an-aws-s3-bucket-bfaaa01b8666)

4 comments

indigodaddyabout 7 years ago
Perhaps consider moving the site to Firebase and put Firebase Authentication in front of it (believe the author piece is free based on <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;44161195&#x2F;which-pricing-tier-mentions-firebase-authentication" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;44161195&#x2F;which-pricing-t...</a>) ? Firebase services also have a general free tier (although may not be suitable to your use case if course), and many paid pricing levels.
jgowansabout 7 years ago
For $15 p&#x2F;mth, you have a couple of options with Aerobatic [0].<p>Option 1 is using the Auth0 plugin [1, 2] Option 2 is using the Password Protect plugin [3]<p>Disclaimer: I work for Aerobatic.<p>[0] <a href="https:&#x2F;&#x2F;www.aerobatic.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.aerobatic.com&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;www.aerobatic.com&#x2F;blog&#x2F;announcing-auth0-plugin&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.aerobatic.com&#x2F;blog&#x2F;announcing-auth0-plugin&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;www.aerobatic.com&#x2F;docs&#x2F;plugins&#x2F;auth0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.aerobatic.com&#x2F;docs&#x2F;plugins&#x2F;auth0&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;www.aerobatic.com&#x2F;docs&#x2F;plugins&#x2F;password-protect&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.aerobatic.com&#x2F;docs&#x2F;plugins&#x2F;password-protect&#x2F;</a>
johnhenryabout 7 years ago
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.<p>[authentication server] -&gt; [static server]<p>Unfortunately, this kind of defeats the purpose of having a static server.
评论 #16778858 未加载
noemitabout 7 years ago
I would use Wordpress