Easiest way to make it safe is 1) Run it in a container 2) Isolate it through a reverse proxy, probably nginx
This doesn't make it safe. It can still be exploited and used to join a botnet, as a proxy, to mine cryptocurrency, to spy on requests or redirect users to malicious websites or phish them, to host malware...
Also I’m curious how a bonnet can get through a container … outgoing connections should be blocked by default