Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ottaviocr opened this issue Oct 24, 2022 · 1 comment

Comments

@Ottaviocr
Copy link

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.

@vdbhb59
Copy link

vdbhb59 commented Apr 10, 2024

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:/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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants