[qutebrowser] Adblock not working properly with local files

Paulo Silva de Alíbano pauloalibano at hotmail.com
Mon May 18 23:37:19 CEST 2020


Hi, I have the following two files with domains I'd like to block. They are from the Disconnect open source list which Firefox uses to block trackers of all sorts.

$ head -n 4 /home/abc/Downloads/blockentities.txt
127.0.0.1 2leep.com
127.0.0.1 2leep.com
127.0.0.1 33across.com
127.0.0.1 tynt.com

$ head -n 4 /home/abc/Downloads/blockservices.txt
127.0.0.1 2leep.com
127.0.0.1 33across.com
127.0.0.1 365media.com
127.0.0.1 4info.com

Then I have this list in content.host_blocking.lists: ["file:///home/abc/Downloads/blockentities.txt", "file:///home/abc/Downloads/blockservices.txt"]. I have also run :adblock-update successfully.

However, they don't quite seem to work in blocking unwanted domains. For example, if I go to stackoverflow.com/questions<https://outlook.live.com/mail/0/stackoverflow.com/questions>, default avatar pictures (of new users) are still loaded, even though they are hosted in https://www.gravatar.com<https://www.gravatar.com/avatar/230c67cca4df75c5604bf0530b434556?s=32&d=identicon&r=PG&f=1>, which I have blocked in both files:

$ grep gravatar /home/abc/Downloads/*
blockentities.txt:127.0.0.1 gravatar.com
blockservices.txt:127.0.0.1 gravatar.com

In Firefox, those pictures are indeed blocked and don't show up, but in Qutebrowser they do show up, so I conclude the ad-blocking is not working.

However, if I add "127.0.0.1 stackoverflow.com" to any of them, then, as expect, I cannot access Stackoverflow anymore. So there should be something non-obvious there...

Am I missing some important step there or should I go to Issues on the Github?

Thanks for the great browser.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/qutebrowser/attachments/20200518/104ed0e6/attachment.htm>


More information about the qutebrowser mailing list