【问题标题】:Basic authentication with simplehttpserver使用 simplehttpserver 进行基本身份验证
【发布时间】:2017-08-01 21:03:30
【问题描述】:

是否可以使用 simplehttpserver 添加基本身份验证?

我想使用 SimpleHTTPServer 限制对网站的访问

【问题讨论】:

标签: authentication simplehttpserver


【解决方案1】:

我最近为此写了sauth。它只是 https://github.com/tianhuil/SimpleHTTPAuthServer 的人性化和正确打包的版本,支持 python3。

试试看:

~$ pip install sauth
~$ cd some_dir
~/some_dir $ sauth admin 12345 
Serving "/home/user/some_dir" directory on http://0.0.0.0:8333

【讨论】:

    猜你喜欢
    • 2015-08-12
    • 2017-06-13
    • 2013-05-30
    • 2016-05-31
    • 2017-10-06
    • 2013-09-14
    • 2010-12-11
    • 2016-08-24
    • 1970-01-01
    相关资源
    最近更新 更多