I'm using hostsblock together with dnsmasq on Arch Linux to block some websites, one of them is facebook.com
and www.facebook.com
.
I know everything is working properly because a simple ping to facebook.com
(or www.facebook.com
) returns 127.0.0.1. Also, if I access these websites from Midori, a blank page is returned (this is an expected behavior, since I'm algo using the kwakd daemon to return blank pages on localhost).
Only Chromium seems to bypass my blocklist. Accessing facebook.com from it makes me go straightly to the facebook homepage.
After cleaning up everything (Ctrl+Shift+Delete) since the beginning of time and restarting Chromium, I get the desired behavior (= cannot access Facebook).
Although, after a while (I'm not exactly sure what causes this), Chromium ignores again my local dnsmasq DNS and successfully access the facebook Homepage.
I read something about the caching and pre-fetching of DNS queries of Chromium, but I'm not sure how to disable it.
Question is: why is Chromium bypassing my local DNS, and what can I do to stop it?