News for hackers. Stuff that matters.
Re:Password protect a static HTML page by deaddodo on Monday February 20, 2023 @01:32AM (#34865586)
Sure you can, it’s been built-in to the HTTP spec since RFC1738[1]. You just do:

//<user>:<pass>@<url>[:<port>][/<location>]/

It doesn’t work on IE classic, but should still be perfectly valid on Chrome, Safari, Firefox, etc.

1 - https://www.ietf.org/rfc/rfc1738.txt

There are no comments on this comment yet.