https://blog.duszynski.eu/posts/client-domain-hooking-in-practice/