sgreben / http-file-server

tiny portable HTTP file server. single binary, no dependencies. linux, osx, windows. #golang
MIT License
214 stars 40 forks source link

[Feature Request] Add a password protection #12

Open sayasmito opened 2 years ago

sayasmito commented 2 years ago

I was using this and realised it could do with a password protection. I can limit acces via firewall rules but password protection would be useful too

noobcode73 commented 1 year ago

Hello.

I made a fork which adds basic auth for routes: https://github.com/noobcode73/http-file-server/tree/patch-2#auth

You have to build with go manually and have to navigate to the default go installtion path and then run http-file-server

Pustinyak commented 1 year ago

@noobcode73 thanks man, it works