DEV Community

loading...

System-wide lightweight ad-filter client (dnsmasq) with hosted data, data generator as backend.

loouislow profile image Loouis Low Updated on ・1 min read

This is my daily use mini-tool ionizer for all my Linux computers. It blocks ads and works seamlessly better than installing web browser extensions and desktop apps. The filter data is hosted at Github by using a dedicated generator. The client is responsible for downloading and updating filter data.


_usage

install app and update the data,

ionizer will install dnsmasq package for you, if not installed,

# install via download
$ wget https://github.com/loouislow81/ionizer/releases/download/untagged-5240e09eafb9428546b3/ionizer_0.0.4_linux_x86-64.app_image
$ sudo ionizer_0.0.4_linux_x86-64.app_image --install
# install via source
$ sudo ionizer --install
$ sudo ionizer --update
Enter fullscreen mode Exit fullscreen mode

edit file /etc/dnsmasq.conf and add this line,

...
addn-hosts=/etc/ionizer/ipaddress.ions
...
Enter fullscreen mode Exit fullscreen mode

you can add ionizer --update into crontab to automate the data updates.

CLI options,

-h,--help ............... Display this information
-u,--update ............. Update blocklists
-l,--list ............... Show total blocklists
-i,--install ............ Install to system
Enter fullscreen mode Exit fullscreen mode

Enjoy!

Discussion (0)

pic
Editor guide