1) Run it in a container
2) Isolate it through a reverse proxy, probably nginx
Also I’m curious how a bonnet can get through a container … outgoing connections should be blocked by default