lWS icon indicating copy to clipboard operation
lWS copied to clipboard

option to listen only on 127.0.0.1

Open xandro0777 opened this issue 2 years ago • 1 comments

Hi, I want to serve a bunch of html pages that should be accessible only on 127.0.0.1

Could you add an option to listen only there?

xandro0777 avatar Feb 13 '22 23:02 xandro0777

As a workaround, it will do that (see https://github.com/mvbasov/lWS/issues/3) if you click start while you are offline (i.e. with WiFi and mobile data disabled). Then, after lws is started and listening only on 127.0.0.1, you can go online again, and it will still be restricted only on 127.0.0.1 (until you stop and start it again).

But an option to restrict it to always work only on 127.0.0.1 would be nice (so people don't expose private files by simple mistake / wrong click)

mnalis avatar Jan 02 '24 18:01 mnalis