A simple http sever that protected others from access data directly.
- It is not a secure server
- It is not for commercial usage
- Recommended usage: want to show files on a server in a short time with protection.
- show files: visualize or download files
- in a short time: just take a look of the file
- with protection: simple protection, which is not safe for long term usage.
- python provides simple http server which can access files under the data directory.
python3 -m http.server [port num]
- password-server requires password before access the files.
- An allowed ip can access direcly.
- An ip would be banned if it attemps to login more than 3 times.
python3 password_server.py [port num] --dir [the directory to show files]
- Python 3.6+