I am using the mvps.org hosts file to block unwanted connections locally. The problem is that I am running nginx listening on 80, and all the blocked sites are routing through nginx to my unicorn web server and this is slowing down my web browsing immensely. Unicorn is trying to handle all these requests for unknown resources.
Can I use the hosts file to route these requests to some null path, other than 127.0.0.1?
Success: routing blocked addresses to somewhere that will not try to respond — thus improving page load speeds.
You can route to any non-existent IP address in your subnet. That should also do the trick.
Or, in nginx, setup a default site for * that drops the connection (return 444) and make sure you have a server_name for your real site(s).