4 ms·
Am I too old, or why can't you do that with a simple .htaccess?
by ajsnigrutin 3y ago
Am I too old, or why can't you do that with a simple .htaccess?
- ksherlock 3y agoAsking the real question. I guess you might want to do it on somebody else's server (GitHub pages, etc).
- shortcake27 3y agoYou could, but it wouldn’t be agnostic. That requires Apache or a server that’s compatible with .htaccess (eg LiteSpeed).
- deaddodo 3y agoAll of the big web servers have some mechanism for implementing server side basic auth (which I assume OP is referencing with ".htaccess". Nginx for instance: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/ https://docs.nginx.com/nginx/admin-guide/security-controls/c...
- AHOHA 3y agoIf you have access to server, definitely there are a lot of ways, htaccess is one.
- capableweb 3y agoWell, it seems this hack is focused on "password" protecting the page fully client-side, meaning no headers or server auth, while .htaccess would rely on the server. The authors hacky way have the benefit of also password-protecting the contents if you CTRL+S the page in the browser as .html, and send it to someone else.
- deleted 3y ago[deleted]
- mock-possum 3y agoThat isn’t just html though is it Edit - oh that wasn’t the rule I guess