A small python server utility for redirecting around the local network.
Tested on Python version 3.10 and 3.13.1, any version other than that and YMMV.
- Clone the repo
- Create a new virtual env with
python -m venv env
- Activate your new env with
.\env\Scripts\activate
- Install the required python packages with
python -m pip install -r requirements.txt
- Add and entry to your host file
127.0.0.1 r
.- you can use anything you want for the server name, I choose 'r' for redirect, you can make it whatever you want.
- Run the server with python
python main.py
The data.db file can be deleted if something goes crazy and will be rebuilt on first run.
Also you can use the --defaults
flag when starting the server and it will assume default options instead of what is in the settings db table.
ex: python tiny_redirect.py --defaults