A longtime reader wrote in asking if it was possible to easily toggle between two hosts files. There are several possible uses for this. When I’m at home, I need to address my web site by its internal, private IP address. On the road, that private address obviously doesn’t work. He wants something like this for other reasons; I believe he’s blocking ad servers with his hosts file and needs to unblock one or more servers temporarily for select sites to work properly.
This solution would make my Computer Science 203 professor rescind the B I received in his class if he saw it, but it works, and I don’t think he reads this blog anyway.
Read more