Lightning-Browser icon indicating copy to clipboard operation
Lightning-Browser copied to clipboard

Cannot block Youtube ads with either built-in, remote or local host file.

Open Ottaviocr opened this issue 3 years ago • 1 comments

Hi, I'm running Lightning v 5.1.0.

  • With Settings> Ad Block Settings > Block Ads [checked] > Hosts file source > Default hosts: all Yoitube ads are displayed.

  • Hosts file source > Remote hosts file > https://winhelp2002.mvps.org/hosts.txt same behaviour

  • Downloaded the file from the url above, with sed I changed all instances of 0.0.0.0 to 127.0.0.1 http://termbin.com/3b2p and: Hosts file source >Local hosts file > Selected local file "hosts.txt"

However the browser keeps on selecting:

File: /storage/C8F8-1EB9/Android/data/acr.browser.lightning/files/local_hosts.txt

And there is no way to change that.

Ottaviocr avatar Oct 24 '22 10:10 Ottaviocr

Reset the browser, or else clear webview once. For me it is working fine, be it the default file, or local or cloud one. The default file may not be able to block as it is 5 years old and is only for ads & tracking of that time.

https://github.com/anthonycr/Lightning-Browser/blob/master/app/src/main/assets/hosts.txt

@anthonycr, mate the hosts file needs updating as well. You can use mine, or I can curate one for ads & tracking only if you need one for the project?

vdbhb59 avatar Apr 10 '24 14:04 vdbhb59