Following code shows how to set up a simple proxy server using fastapi.
from fastapi import FastAPI, Request
Put that code into a python file, such as
app.py, launch the app on your server, for example, if locally just do:
Once the fastapi is turned on, one can browse websites like this: