Worst case you can split up the hosts file into several different files, then use gas mask[1] to toggle them individually.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;2ndalpha&#x2F;gasmask" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;2ndalpha&#x2F;gasmask</a>