I have the following entries in my /etc/hosts file, to block Facebook and meta services. I know that it is not complete and I will be adding additional hostnames over here.
If I open a new Firefox instance and then try to open facebook homepage using facebook.com it opens up. On certain sites that use Meta marketing and tracking services there also the connection happens. I can close/kill all Firefox instances and start a fresh one and still the same behavior is observed.
This leads to a conclusion that Firefox does not utilize the entries in the /etc/hosts file.
I’m afraid I’m a typical forum guy here. I don’t know the answer to your question, and yet I’m responding.
There is another way to accomplish what you want to do. If you use ublock origin, there is a “My filters” tab under configuration that you can edit and add as many blocks as you like.
The host file is loaded with the OS. Edit’s to the file generally will not take effect until the next reboot. I use hblock on my system and use Zen and Brave/Helium and it works flawlessly for me.
true but old habits die hard. Windows when I last used it one used to have to reboot in order to get the new hosts loaded even disconnecting the network didn’t remove the hosts from memory back then.