Skip to content

Blocking ads, trackers & other online garbage #542

Description

@billz

I've heard from users on lockdown due to the pandemic who are struggling with slow internet. Seems to me this could help. Looking at the dnsmasq docs:

-H, --addn-hosts=<file>    Additional hosts file. Read the specified file as well as
                           /etc/hosts. If -h is given, read only the specified file.
                           This option may be repeated for more than one additional
                           hosts file. If a directory is given, then read all the files
                           contained in that directory.

This option could be used to create an ad / tracker blocking option, effectively ignoring DNS requests for undesirable hosts.

If it sounds familiar, this is indeed very similar to Pi-Hole. However, combining this facility with an AP would simplify setup and improve throughput by filtering out cruft, at least in theory.

This project looked promising, so I quickly prototyped a new feature that uses it. There are of course many other such lists.

adblock

The update button pulls the latest lists down to the Pi. I haven't done extensive testing (ad blocking, performance or otherwise), but dnsmasq seems happy with it.

dnsmasq[20285]: read /etc/raspap/adblock/hostnames.txt - 78506 addresses

Anyone have experience with this?

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions