I like to point out, who is interested in blocking harmful and undesired domains with the help of hosts files, there is, in my opinion, a very good source for that. It's a repository which extends and
I like to point out, who is interested in blocking harmful and undesired domains with the help of hosts files, there is, in my opinion, a very good source for that. It's a repository which extends and
consolidates existing hosts files from other sites, and merges them into a unified hosts file with duplicates removed. There are hosts files ready to download to choose from by category (adware, malware, gambling, porn, social, or in combination). Even one can generate a own, tailored unified hosts file by adding extra sources.
Unified hosts files blocking unique domains from 29,749 to 35,992 at the time of this writing.
https://github.com/StevenBlack/hosts
At the moment I'm using adblock to block all ads and trackers. Does the hosts file method has any advantages over that?
...
...
- Browser plugins are destined to one piece of software and not to the whole machine. Void zones are active for the whole machine or in the case of a gateway, for any number of clients, and even for those (Android) which don't allow ad-blocking plugins.
- Browser plugins are active filters, that means, beside the advertised behaviour, they are able to do something in the background. This is a matter of trust, which may sometimes miserably trapped -- see the WoT incident. Void zones are passive. The actual filtering is done by the DNS resolver, here *Unbound*, which is much less likely of doing undesired things behind your back.
I like to point out, who is interested in blocking harmful and undesired domains with the help of hosts files, there is, in my opinion, a very good source for that. It's a repository which extends and
consolidates existing hosts files from other sites, and merges them into a unified hosts file with duplicates removed. There are hosts files ready to download to choose from by category (adware, malware, gambling, porn, social, or in combination). Even one can generate a own, tailored unified hosts file by adding extra sources.
Unified hosts files blocking unique domains from 29,749 to 35,992 at the time of this writing.
https://github.com/StevenBlack/hosts
This looks really interesting. Why isn't this in ports?I put the tools that I use for DNS filtering with unbound(8) on GitHub -- https://github.com/cyclaero/void-zones-tools. The README file discusses the pros & cons of the various methods and there is also a section on "How does this compare to Browser Plugins?"
The usual excuse for laziness. I thought nobody would like it.This looks really interesting. Why isn't this in ports?![]()
Two years ago, I described the method including setting-up Unbound in two posts on my BLog. This is in German language, however, using an online translation tool, perhaps it might be still suitable to get you started:First I'll have to dive into unbound(1) for this.
In case of any doubts you are welcome to send me a private e-mail. You'll find the address on my BLog - Impressum.My german isn't bad (I'm from NL) so I'll read and try to understand the german text first.
I have been looking for something that would do what what you are doing here, namely the blocking all subdomains of a domain.The usual excuse for laziness. I thought nobody would like it.
I have been looking for something that would do what what you are doing here, namely the blocking all subdomains of a domain.
One question, say I wanted to block just the ads on a domain will just entering something like:
0.0.0.0 ads.exampledomain.com
block just that but allow www.exampledomain.com, or is my understanding incorrect?
local-zone: "ads.exampledomain.com" static
The usual excuse for laziness. I thought nobody would like it.
Two years ago, I described the method including setting-up Unbound in two posts on my BLog. This is in German language, however, using an online translation tool, perhaps it might be still suitable to get you started:
http://blog.obsigna.net/?p=504
http://blog.obsigna.net/?p=509
PS: The tools presented in the 2 years old BLog posts still do work, however, I suggest to use the updated ones on GitHub.
Did you use the software from 2014 from my BLog post or are your referring to the updated one on GitHub?Unbound is running and working. Trying to install a working /var/unbound/local-void.zones now. I've followed the directions on your site http://blog.obsigna.net/?p=509 but the binary hosts2zones coredumps with an "illegal instruction".
fetch -o void-zones-tools-master.zip https://github.com/cyclaero/void-zones-tools/archive/master.zip
unzip void-zones-tools-master.zip
make clean install CDEFS="-march=native"
, and then try again. make clean install CDEFS="-march=native"
Please can you post some details of your machine? Which FreeBSD version (32 or 64bit) and which CPU?New tool crashes as well. The directory /usr/local/etc/void-zones is created and filled with the hosts files. However /var/unbound/local-void.zones is still empty and the binary coredumps with an illegal instruction.
...And same withmake clean install CDEFS="-march=native"
make clean install
# service local_unbound restart
Stopping local_unbound.
Waiting for PIDS: 87910.
Starting local_unbound.
/var/unbound/local-void.zones:1: error: syntax error
read /var/unbound/unbound.conf failed: 1 errors in configuration file
[1478906271] unbound[87948:0] fatal error: Could not read config file: /var/unbound/unbound.conf
/etc/rc.d/local_unbound: WARNING: failed to start local_unbound
server:
username: unbound
directory: /var/unbound
chroot: /var/unbound
pidfile: /var/run/local_unbound.pid
auto-trust-anchor-file: /var/unbound/root.key
include: /var/unbound/local-void.zones
include: /var/unbound/forward.conf
include: /var/unbound/lan-zones.conf
include: /var/unbound/control.conf
include: /var/unbound/conf.d/*.conf
You cannot beat telemetry of any kind of software, let it be the driver package of NVIDIA, or the various calling home daemons in Windows 10, or of software on other devices in your home network (Smart TVs, Playstations, Printers, ..., zillions of IoT devices ante porta) with just another browser plugin -- not with the very best of the world.Just in regards of browser add on, there is uBlock Origin what include everything AdBlock include and a lot of more.