How to block ads?

Hi all,

I watch online football games (online stream) really often.

What I hate with that are ads, and all unwanted new pages (tabs)

How to block all of them ?

Atm I am using uBlock Origin from Firefox, but that is not 100 % working.

Thanks

Hi!
Try to set more restricted options in firefox, but maybe the stream would have some issues

1 Like

Most regulars here seem to prefer µBLock Origin, but like you, I personally find it hopelessly inadequate, and so instead I use AdBLock Plusfirefox-adblock-plus from the repository ─ which does work very diligently. :wink:

sudo pacman -S firefox-adblock-plus
2 Likes

I use AdNauseam. Don’t know if it fits your needs but it’s worth a shot :slight_smile:

2 Likes

Thanks guys… will try all of them and experiment a little xD

Pi-hole.

3 Likes

Personally, never had issues with ublock origin’s default settings. You can add more host files if you want to it. And/or change the modes:

Really?
That thing is … woefully inadequate at blocking … comes preemptively with ‘acceptable ads’ … and uses way more resources.

@brtza
the thing about ublock:origin … is you need to use the lists … set/add whichever ones you need … including ABP ones if you want.

Ex:

3 Likes

The “acceptable ads” are easily disabled, and I don’t notice anything about it using more resources. Now this computer here is no slouch, but it’s not exactly top-of-the-line either. It’s an Intel i5-8400, with six cores, no Hyperthreading, and 16 GiB of RAM.

As they say, your mileage may vary. :man_shrugging:

I suppose its probably not too noticeable these days when 100mb ram vs 10mb ram doesnt matter.
but its the principle of the thing. :stuck_out_tongue_winking_eye:
I also dont think you have too much control over their lists … but I dunno … havent even looked at it seriously in years and years.

As to an even better solution … managed hosts file.
That will get rid of tons of nasties.
(I havent even updated mine recently and its … over 120,000 lines :laughing:)

Is there an /etc/hosts solution for the OP?

1 Like

Sorry. Should mention …
There are a number of packages in the AUR that will source/sort/apply these lists.
(and/or resources online to manually generate from)
I forget all of them … but update-hosts-git is one and I know there are others.

Also to add - I find these are much more comprehensive than your general browser addon, including things like crypto-miners, its also applied system-wide so its fuller protection…and … its straight up faster. setting 0.0.0.0 for facialrecognitionbook.com results in zero redirects and no ping at all … simply ends the connection from origin immediately.

1 Like

Take a look at hBlock. It is available in AUR.

2 Likes

I’m mostly using Brave + uBlock Origin these days, before that I used Iron (de-googled Chromium on Windows) + the same extensions. Heven’t seen ads in forever.

I don’t watch videos, so I can’t really comment on that; the only thing that pops up sooner or later is paywalls which get fed to cosmetic filters and/or simply deleted from the page source if I even stay on that site.

Works well, but planning on getting a Pi-hole set up later this year to take care of other devices like the TV and Playsation.

I downloaded the MVPS hosts file:

wget http://winhelp2002.mvps.org/hosts.txt

Then I replaced the 0.0.0.0’s with 127.0.0.1’s in a text editor for good measure & stuck it on the bottom of my hosts file.

I thought I was running a modified /etc/hosts but when I looked I wasn’t. In the past I must have installed & forgot about doing it.

I’m grateful to the OP of this thread, as the discussion made me check. :slight_smile:

I’m using the Brave browser with no ad-block add-on, as Brave blocks most stuff by default (I have the sponsored stuff turned off in Brave). I’ll be interested to see if the modified /etc/hosts file gets rid of the very few adds that get through in Brave.

1 Like

Yes I have the 2-prong approach too.
The browser extension should handle anything I happen to not add/update in my hosts file, but also for anything browser-specific up to and including things like referrer headers or funny javascript things, etc.
Also, to minimize blocking-load I try to make sure to have no redundancies …
Thats why a tool to sort multiple sources is nice but also why you may notice in my screenshot above that I actually dont have very many ublock sources checked. Such as MVPS - as thats already in the hosts file.

EDIT. oh yeah @handy dont forget …
Firefox’s ‘DNS-Over-HTTPS’ ignores your hosts file.
You have to turn that off for any of it to matter
(you have your system/network DNS already handled, right? :wink:)
You can do so in Preferences, or use the about:config string:

network.trr.mode                             5

I use uBlock Origin, and I have no ad anywhere.

But when you install uBlock you have to go to its settings and tick all the blocklist you want to use, then click the update all button and you’re good, find me a link where you have ads :smiley: I would be surprised.

2 Likes

@cscs, I’m using the Brave browser (mentioned in last post) so about:config isn’t. :wink:

I’m always on a VPN which takes control of my DNS & makes sure that only its DNS servers are used, apart from the other VPN stuff of course.

I’m sure your EDIT will be very helpful to some other users out there, due to the popularity of Firefox.

As its a chromium/blink thing …
It might still have a similar option in chrome://flags
Specifically "Secure DNS lookups (#dns-over-https)"
(or brave://flags/#dns-over-https)
But honestly dont know which ones have it on by default.

With ‘brave://flags/#dns-over-https’ I get Not available on your platform.

The others just turn into search page results.

Thanks for the info’ though cscs.