4

Is it possible to add a basic authentication with simplehttpserver ?

I would like to restrict the access to a website using SimpleHTTPServer

1

1 Answer 1

20

I recently wrote sauth for this reason. It's just humanized and properly packaged version of https://github.com/tianhuil/SimpleHTTPAuthServer with python3 support.

Try it:

~$ pip install sauth
~$ cd some_dir
~/some_dir $ sauth admin 12345 
Serving "/home/user/some_dir" directory on http://0.0.0.0:8333
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.