2ndalpha / gasmask

Hosts file manager for OS X
3.71k stars 250 forks source link

Common hosts file entries #161

Open rdgupt opened 5 years ago

rdgupt commented 5 years ago

Is it possible to have a local gas mask file that stores common hosts entries that are prepended/appended to all hosts files?

JayBrown commented 4 years ago

I assume you can make one specific local hosts file that contains all the common entries you want, and then you create combined hosts files, i.e. you combine every hosts file you want to use with the above hosts file that contains only these common entries, and then you only use (switch between) these combined hosts file.

However, I have run into problems with this approach, in that the common entries stopped being resolved altogether, including 127.0.0.1 localhost, LAN domain names, and my individual spam/malware domain blocks. (!) So I assume, since Gas Mask offers this functionality, I'm doing something wrong with it here.