Blocking Outbound Connections to Specific Hosts on Mac
Sometimes it's useful to block outbound connections to a certain host. For example, when testing how your locally-running code reacts when a service it depends on or calls goes down. To block outgoing connections to a given host, say: api.zention.co.uk, edit the hosts file with sudo vi /private/etc/hosts and add a line like this: 0.0.0.0 api.zention.co.uk Then flush the DNS cache so the hosts...
Read More